Fix StartUpdate on root state not called.
This commit is contained in:
@@ -24,6 +24,7 @@ namespace Cryville.Crtr.Event {
|
|||||||
Expand();
|
Expand();
|
||||||
AttachBus();
|
AttachBus();
|
||||||
RootState.Working = true;
|
RootState.Working = true;
|
||||||
|
RootState.StartUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
public EventBus Clone(byte ct, float offsetTime = 0) {
|
public EventBus Clone(byte ct, float offsetTime = 0) {
|
||||||
@@ -35,6 +36,7 @@ namespace Cryville.Crtr.Event {
|
|||||||
r.invalidatedStates = new HashSet<ContainerState>();
|
r.invalidatedStates = new HashSet<ContainerState>();
|
||||||
r.Time += offsetTime;
|
r.Time += offsetTime;
|
||||||
r.RootState = RootState.Clone(ct);
|
r.RootState = RootState.Clone(ct);
|
||||||
|
r.RootState.StartUpdate();
|
||||||
r.Expand();
|
r.Expand();
|
||||||
r.AttachBus();
|
r.AttachBus();
|
||||||
foreach (var s in r.states) r.invalidatedStates.Add(s.Value);
|
foreach (var s in r.states) r.invalidatedStates.Add(s.Value);
|
||||||
|
Reference in New Issue
Block a user