Revert "Revise update clone type to update depth."

This reverts commit 4185303bd2.
This commit is contained in:
2023-01-20 22:26:56 +08:00
parent 39bc34fd42
commit be64bc76b5
3 changed files with 14 additions and 15 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, s.CloneType);
if (gogroup && s.CloneType <= 2) skinContainer.MatchDynamic(s);
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, 1);
skinContainer.MatchDynamic(s);
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, s.CloneType);
skinContainer.MatchDynamic(s);
CloseAnchor();
}
}