Reconstruct skin container. Add update clone type limit to skin property.

This commit is contained in:
2022-11-20 16:12:19 +08:00
parent d08eea5c1e
commit cfdb5f021e
5 changed files with 110 additions and 74 deletions

View File

@@ -62,7 +62,7 @@ namespace Cryville.Crtr.Event {
public EventContainer Container {
get { return cs.Container; }
}
public SkinContainer skinContainer;
public Judge judge;
public void AttachSystems(PdtSkin skin, Judge judge) {
@@ -125,7 +125,7 @@ namespace Cryville.Crtr.Event {
public virtual void Update(ContainerState s, StampedEvent ev) {
bool flag = !Awoken && s.CloneType >= 2 && s.CloneType < 16;
if (flag) PreAwake(s);
if (Awoken && s.CloneType <= 2) if (gogroup) skinContainer.MatchDynamic(s);
if (s.CloneType <= 2) if (gogroup) skinContainer.MatchDynamic(s);
if (flag) Awake(s);
}
public virtual void ExUpdate(ContainerState s, StampedEvent ev) { }