Postpone skin static matching.
This commit is contained in:
@@ -86,10 +86,10 @@ namespace Cryville.Crtr.Event {
|
||||
Anchors.Add("tail", new Anchor() { Transform = a_tail });
|
||||
}
|
||||
/// <summary>
|
||||
/// Called upon initialization of <see cref="cs" />.
|
||||
/// Called upon StartUpdate of ps 17.
|
||||
/// </summary>
|
||||
public virtual void Init() {
|
||||
skinContainer.MatchStatic(cs);
|
||||
skinContainer.MatchStatic(ps);
|
||||
foreach (var i in gogroup.GetComponentsInChildren<SkinComponent>())
|
||||
i.Init();
|
||||
}
|
||||
@@ -118,6 +118,9 @@ namespace Cryville.Crtr.Event {
|
||||
PreAwake(s);
|
||||
Awake(s);
|
||||
}
|
||||
else if (s.CloneType == 17) {
|
||||
Init();
|
||||
}
|
||||
}
|
||||
public virtual void Update(ContainerState s, StampedEvent ev) {
|
||||
bool flag = !Awoken && s.CloneType >= 2 && s.CloneType < 16;
|
||||
|
@@ -404,13 +404,17 @@ namespace Cryville.Crtr.Event {
|
||||
}
|
||||
}
|
||||
|
||||
public void BroadcastInit() {
|
||||
public void BroadcastPreInit() {
|
||||
Handler.PreInit();
|
||||
Handler.Init();
|
||||
foreach (var s in Children) {
|
||||
s.Value.BroadcastInit();
|
||||
foreach (var c in Children.Values) {
|
||||
c.BroadcastPreInit();
|
||||
}
|
||||
}
|
||||
public void BroadcastPostInit() {
|
||||
Handler.PostInit();
|
||||
foreach (var c in Children.Values) {
|
||||
c.BroadcastPostInit();
|
||||
}
|
||||
}
|
||||
|
||||
public void StartUpdate() {
|
||||
|
@@ -146,11 +146,14 @@ namespace Cryville.Crtr.Event {
|
||||
else if (!s.Working && workingStates.Contains(s)) workingStates.Remove(s);
|
||||
invalidatedStates.Clear();
|
||||
}
|
||||
|
||||
public void BroadcastInit() {
|
||||
RootState.BroadcastInit();
|
||||
}
|
||||
|
||||
public void BroadcastPreInit() {
|
||||
RootState.BroadcastPreInit();
|
||||
}
|
||||
public void BroadcastPostInit() {
|
||||
RootState.BroadcastPostInit();
|
||||
}
|
||||
|
||||
public void BroadcastEndUpdate() {
|
||||
RootState.BroadcastEndUpdate();
|
||||
}
|
||||
|
Reference in New Issue
Block a user