diff options
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);
      } | 
