From 491fab84700fd96a5140000679a11ca93349c8d1 Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 9 Sep 2021 14:58:31 +0800 Subject: *air combo --- Assets/Scripts/Test 1/TestErika.cs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'Assets/Scripts/Test 1/TestErika.cs') 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); } -- cgit v1.1-26-g67d0