diff options
author | chai <chaifix@163.com> | 2020-10-13 07:02:26 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2020-10-13 07:02:26 +0800 |
commit | 58a47386a711746d17c5c66ac897a53f7a4aad4b (patch) | |
tree | e73d4906280793b5fb3070fe258333e0ad988115 /Assets/Scripts/Test/AimTest.cs | |
parent | 8b384dffa0d9c63c7a657c6e567c2ddefbf046cd (diff) |
+samurai & ninja animations
Diffstat (limited to 'Assets/Scripts/Test/AimTest.cs')
-rw-r--r-- | Assets/Scripts/Test/AimTest.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Assets/Scripts/Test/AimTest.cs b/Assets/Scripts/Test/AimTest.cs new file mode 100644 index 00000000..ad33221b --- /dev/null +++ b/Assets/Scripts/Test/AimTest.cs @@ -0,0 +1,16 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class AimTest : MonoBehaviour +{ + public GameObject Go_ConstainObj; + + public GameObject Go_AimTarget; + + public void LateUpdate() + { + Go_ConstainObj.transform.LookAt(Go_AimTarget.transform); + } + +} |