Revise update clone type to update depth.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user