public IEnumerator EnabledPlayer(bool state) { yield return(new WaitForSeconds(.2f)); _player.GetComponent <Animator>().enabled = state; _player.enabled = state; }
public IEnumerator EnabledPlayer(bool state) { yield return(new WaitForSeconds(.2f)); _player.GetComponent <Animator>().enabled = state; _player.GetComponent <Rigidbody2D>().velocity = Vector2.zero; _player.enabled = state; }
public void EndGame() { _player.GetComponent <Animator>().enabled = false; _player.enabled = false; StartCoroutine(ResetActivity()); }