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) {
|
||||
base.Awake(s);
|
||||
if (s.CloneType == 2) {
|
||||
if (!gogroup) return;
|
||||
Chart.Note tev = Event;
|
||||
if (tev.IsLong) {
|
||||
@@ -57,6 +58,7 @@ namespace Cryville.Crtr {
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
readonly Dictionary<Chart.Motion, Vec1> phMotions = new Dictionary<Chart.Motion, Vec1>();
|
||||
bool invalidated = false;
|
||||
@@ -160,8 +162,7 @@ namespace Cryville.Crtr {
|
||||
}
|
||||
|
||||
public override void EndUpdate(ContainerState s) {
|
||||
if (s.CloneType == 0 || s.CloneType == 2) {
|
||||
if (!gogroup) goto return_ahead;
|
||||
if (s.CloneType == 2 && gogroup) {
|
||||
foreach (var i in sgos) i.Seal();
|
||||
#if UNITY_5_6_OR_NEWER
|
||||
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>());
|
||||
}
|
||||
return_ahead:
|
||||
OpenAnchor("tail");
|
||||
base.EndUpdate(s);
|
||||
CloseAnchor("tail");
|
||||
|
Reference in New Issue
Block a user