Remove unnecessary operations on note game objects.
This commit is contained in:
@@ -40,6 +40,7 @@ namespace Cryville.Crtr {
|
|||||||
}
|
}
|
||||||
protected override void Awake(ContainerState s) {
|
protected override void Awake(ContainerState s) {
|
||||||
base.Awake(s);
|
base.Awake(s);
|
||||||
|
if (s.CloneType == 2) {
|
||||||
if (!gogroup) return;
|
if (!gogroup) return;
|
||||||
Chart.Note tev = Event;
|
Chart.Note tev = Event;
|
||||||
if (tev.IsLong) {
|
if (tev.IsLong) {
|
||||||
@@ -57,6 +58,7 @@ namespace Cryville.Crtr {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
readonly Dictionary<Chart.Motion, Vec1> phMotions = new Dictionary<Chart.Motion, Vec1>();
|
readonly Dictionary<Chart.Motion, Vec1> phMotions = new Dictionary<Chart.Motion, Vec1>();
|
||||||
bool invalidated = false;
|
bool invalidated = false;
|
||||||
@@ -160,8 +162,7 @@ namespace Cryville.Crtr {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public override void EndUpdate(ContainerState s) {
|
public override void EndUpdate(ContainerState s) {
|
||||||
if (s.CloneType == 0 || s.CloneType == 2) {
|
if (s.CloneType == 2 && gogroup) {
|
||||||
if (!gogroup) goto return_ahead;
|
|
||||||
foreach (var i in sgos) i.Seal();
|
foreach (var i in sgos) i.Seal();
|
||||||
#if UNITY_5_6_OR_NEWER
|
#if UNITY_5_6_OR_NEWER
|
||||||
a_tail.SetPositionAndRotation(GetFramePoint(ts.Parent, ts.Track), Quaternion.Euler(ts.Direction));
|
a_tail.SetPositionAndRotation(GetFramePoint(ts.Parent, ts.Track), Quaternion.Euler(ts.Direction));
|
||||||
@@ -177,7 +178,6 @@ namespace Cryville.Crtr {
|
|||||||
}
|
}
|
||||||
cs.Bus.IssuePatch(patchedJudgeEvents.Cast<StampedEvent>());
|
cs.Bus.IssuePatch(patchedJudgeEvents.Cast<StampedEvent>());
|
||||||
}
|
}
|
||||||
return_ahead:
|
|
||||||
OpenAnchor("tail");
|
OpenAnchor("tail");
|
||||||
base.EndUpdate(s);
|
base.EndUpdate(s);
|
||||||
CloseAnchor("tail");
|
CloseAnchor("tail");
|
||||||
|
Reference in New Issue
Block a user