コード例 #1
0
    public IEnumerator EnabledPlayer(bool state)
    {
        yield return(new WaitForSeconds(.2f));

        _player.GetComponent <Animator>().enabled = state;
        _player.enabled = state;
    }
コード例 #2
0
    public IEnumerator EnabledPlayer(bool state)
    {
        yield return(new WaitForSeconds(.2f));

        _player.GetComponent <Animator>().enabled     = state;
        _player.GetComponent <Rigidbody2D>().velocity = Vector2.zero;
        _player.enabled = state;
    }
コード例 #3
0
 public void EndGame()
 {
     _player.GetComponent <Animator>().enabled = false;
     _player.enabled = false;
     StartCoroutine(ResetActivity());
 }