Exemple #1
0
 public void QuitCurrentGame()
 {
     m_CPM.GetComponent <CheckPointMaster>().ResetCP();
     SceneManager.LoadScene("MainMenu");
     Time.timeScale = 1f;
     PauzeMenuObject.SetActive(false);
 }
    IEnumerator PlayerDeath()
    {
        GetComponent <PlayerController>().enabled = false;
        GetComponent <Rigidbody2D>().simulated    = false;
        GetComponent <BoxCollider2D>().enabled    = false;
        yield return(new WaitForSeconds(1.5f));

        m_CheckPointManager.GetComponent <CheckPointMaster>().PlayedDied();
    }