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