public void RespawnPlayer() { isDead = false; pCon.animator.SetBool("isDead", isDead); if (spawnZone != null) { spawnZone.RespawnObject(gameObject); } else { Debug.LogError("No respawn location assigned!"); } pInteract.UnAssignSwitchReference(); pCon.EnablePlayerController(); currentPhase = hurtPhase0; fadeTween.Kill(); injuredFlashImage.color = idleColor; windDial.HideWindDial(); }