Cleanup variable name.
This commit is contained in:
@@ -57,7 +57,7 @@ namespace Cryville.Crtr {
|
||||
}
|
||||
public override void Init() {
|
||||
base.Init();
|
||||
sgos = gogroup.GetComponentsInChildren<SectionalGameObject>();
|
||||
sgos = RootTransform.GetComponentsInChildren<SectionalGameObject>();
|
||||
foreach (var judge in judges) judge.Value.InitPropSrcs();
|
||||
}
|
||||
|
||||
@@ -70,7 +70,7 @@ namespace Cryville.Crtr {
|
||||
protected override void StartGraphicalUpdate(ContainerState s) {
|
||||
base.StartGraphicalUpdate(s);
|
||||
TransformAwake(s);
|
||||
if (gogroup) {
|
||||
if (RootTransform) {
|
||||
if (Event.IsLong) {
|
||||
foreach (var i in sgos) {
|
||||
i.Reset();
|
||||
@@ -79,10 +79,10 @@ namespace Cryville.Crtr {
|
||||
}
|
||||
else {
|
||||
#if UNITY_5_6_OR_NEWER
|
||||
gogroup.SetPositionAndRotation(Position, Rotation);
|
||||
RootTransform.SetPositionAndRotation(Position, Rotation);
|
||||
#else
|
||||
gogroup.position = Position;
|
||||
gogroup.rotation = Rotation;
|
||||
RootTransform.position = Position;
|
||||
RootTransform.rotation = Rotation;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@@ -96,7 +96,7 @@ namespace Cryville.Crtr {
|
||||
if (s.CloneType <= 2) {
|
||||
Position = GetFramePoint(s.Parent, s.Track);
|
||||
Rotation = GetFrameRotation(s.Parent, s.Track);
|
||||
if (s.CloneType == 2 && gogroup && Event.IsLong) {
|
||||
if (s.CloneType == 2 && RootTransform && Event.IsLong) {
|
||||
foreach (var i in sgos)
|
||||
i.AppendPoint(Position, Rotation);
|
||||
}
|
||||
@@ -128,7 +128,7 @@ namespace Cryville.Crtr {
|
||||
}
|
||||
|
||||
protected override void EndGraphicalUpdate(ContainerState s) {
|
||||
if (gogroup) {
|
||||
if (RootTransform) {
|
||||
foreach (var i in sgos) i.Seal();
|
||||
}
|
||||
base.EndGraphicalUpdate(s);
|
||||
|
Reference in New Issue
Block a user