Esempio n. 1
0
 void Update()
 {
     if (VerifyPosition() && !respawnPoint.GetComponent <Objective>().reached&& playerHealth.isDead)
     {
         respawnPoint.GetComponent <Objective>().ActivateObjective();
         Debug.Log("Respawing");
         playerHealth.CmdRespawn();
     }
 }