summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Test/CentreTest.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2020-10-13 07:02:26 +0800
committerchai <chaifix@163.com>2020-10-13 07:02:26 +0800
commit58a47386a711746d17c5c66ac897a53f7a4aad4b (patch)
treee73d4906280793b5fb3070fe258333e0ad988115 /Assets/Scripts/Test/CentreTest.cs
parent8b384dffa0d9c63c7a657c6e567c2ddefbf046cd (diff)
+samurai & ninja animations
Diffstat (limited to 'Assets/Scripts/Test/CentreTest.cs')
-rw-r--r--Assets/Scripts/Test/CentreTest.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/Assets/Scripts/Test/CentreTest.cs b/Assets/Scripts/Test/CentreTest.cs
new file mode 100644
index 00000000..1338067d
--- /dev/null
+++ b/Assets/Scripts/Test/CentreTest.cs
@@ -0,0 +1,22 @@
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+public class CentreTest : MonoBehaviour
+{
+
+ public Transform Trans_Saionji_Left;
+ public Transform Trans_Saionji_Right;
+
+ // Start is called before the first frame update
+ void Start()
+ {
+
+ }
+
+ // Update is called once per frame
+ void Update()
+ {
+ transform.position = (Trans_Saionji_Left.position + Trans_Saionji_Right.position ) / 2;
+ }
+}