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