diff options
author | chai <chaifix@163.com> | 2021-09-09 14:58:31 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-09-09 14:58:31 +0800 |
commit | 491fab84700fd96a5140000679a11ca93349c8d1 (patch) | |
tree | c3f4e37217e161ee5ef6833e67f676a0b85bfdab /Assets/Scripts/Test 1/TestErika.cs | |
parent | ee156b2a7254d58e646dc44f5828c7e1eb8e1b64 (diff) |
*air combo
Diffstat (limited to 'Assets/Scripts/Test 1/TestErika.cs')
-rw-r--r-- | Assets/Scripts/Test 1/TestErika.cs | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Assets/Scripts/Test 1/TestErika.cs b/Assets/Scripts/Test 1/TestErika.cs index 81bdbdd3..949cf76f 100644 --- a/Assets/Scripts/Test 1/TestErika.cs +++ b/Assets/Scripts/Test 1/TestErika.cs @@ -34,6 +34,18 @@ public class TestErika : MonoBehaviour SetupMonster(); } + private void Update()
+ {
+ if (Input.GetKeyDown("r"))
+ {
+ erika.unitController.transform.position = Vector3.zero;
+ erika.unitController.transform.rotation = Quaternion.identity;
+
+ monster.unitController.transform.position = new Vector3(2, 0, 0);
+ monster.unitController.transform.rotation = Quaternion.Euler(0, 180, 0);
+ }
+ } + void SetupErika()
{
erika.unitController = GameObject.Instantiate(erika.unitControllerPrefab);
@@ -90,7 +102,7 @@ public class TestErika : MonoBehaviour unitCtr.monsterState.ChangeState(MonsterState.EUnitState.Idle, new MonsterState.IdleParam(), true);
- monster.unitController.transform.position = new Vector3(5, 0, 0);
+ monster.unitController.transform.position = new Vector3(2, 0, 0);
monster.unitController.transform.rotation *= Quaternion.Euler(0, 180, 0);
} |