예제 #1
0
 private void movePlayerLeft()
 {
     if (playerScript == null)
     {
         playerScript = GameObject.FindGameObjectWithTag("Player").GetComponent <TornadoRunPlayerScript>();
     }
     playerScript.MoveLeft();
 }
예제 #2
0
 private void Awake()
 {
     player       = GameObject.FindGameObjectWithTag("Player");
     playerScript = player.GetComponent <TornadoRunPlayerScript>();
 }