Ejemplo n.º 1
0
 private void StateKill()
 {
     state = "kill";
     playerAlive.GetComponent <PlayerAlive>().alive         = false;
     playController.GetComponent <PlayController>().enabled = false;
     deathCam.SetActive(true);
     deathCam.transform.position = Camera.main.transform.position;
     deathCam.transform.rotation = Camera.main.transform.rotation;
     Camera.main.gameObject.SetActive(false);
     playController = GameObject.Find("Player").GetComponent <PlayController>();
     playController.Died();
     Invoke("reset", 3f);
 }