Fixinprocess
This commit is contained in:
1 parent
0619ada74f
commit
921c4125b7
772 files changed
+154236
-144405
No files matched your search
@@ -14,5 +14,12 @@ namespace Code.Infrastructure.Utils
|
||||
{
|
||||
snapshot.RestoreTo(animator);
|
||||
}
|
||||
|
||||
public static void ResetAnimatorPosition(this Animator animator)
|
||||
{
|
||||
animator.applyRootMotion = false;
|
||||
animator.transform.localPosition = Vector3.zero;
|
||||
animator.transform.localRotation = Quaternion.identity;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user