Code cleanup.

This commit is contained in:
2023-02-09 18:18:34 +08:00
parent 7714c277fd
commit 18ff4b8e16
6 changed files with 13 additions and 41 deletions

View File

@@ -155,8 +155,8 @@ namespace Cryville.Crtr.Event {
#if UNITY_5_6_OR_NEWER
tev.Target.Transform.SetPositionAndRotation(Position, Rotation);
#else
tev.Target.Transform.position = GetCurrentWorldPoint();
tev.Target.Transform.rotation = Quaternion.Euler(s.Direction);
tev.Target.Transform.position = Position;
tev.Target.Transform.rotation = Rotation;
#endif
skinContainer.MatchDynamic(s);
CloseAnchor();