Revise update clone type to update depth.

This commit is contained in:
2023-01-17 22:16:09 +08:00
parent 3280693e8f
commit 4185303bd2
3 changed files with 15 additions and 14 deletions

View File

@@ -144,7 +144,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 (gogroup && s.CloneType <= 2) skinContainer.MatchDynamic(s);
if (gogroup && s.CloneType <= 2) skinContainer.MatchDynamic(s, s.CloneType);
if (flag) Awake(s);
}
public virtual void ExUpdate(ContainerState s, StampedEvent ev) {
@@ -158,7 +158,7 @@ namespace Cryville.Crtr.Event {
tev.Target.Transform.position = GetCurrentWorldPoint();
tev.Target.Transform.rotation = Quaternion.Euler(s.Direction);
#endif
skinContainer.MatchDynamic(s);
skinContainer.MatchDynamic(s, 1);
CloseAnchor();
}
anchorEvPool.Return(tev);
@@ -170,7 +170,7 @@ namespace Cryville.Crtr.Event {
Awoken = false;
if (gogroup && s.CloneType <= 2) {
OpenAnchor(a_tail);
skinContainer.MatchDynamic(s);
skinContainer.MatchDynamic(s, s.CloneType);
CloseAnchor();
}
}