public static void Spawn(GameManager gameManager, PlayerMovementManager player, Vector3 position) { if (player.isDead) { gameManager.normalCamera.enabled = true; gameManager.overheadCamera.enabled = false; Cursor.visible = false; Cursor.lockState = CursorLockMode.Locked; player.photonView.RPC("SetPosAndRotation", PhotonTargets.All, position + new Vector3(0, 5, 0), Quaternion.identity); HitPointsManager hitpointsManager = player.GetComponent <HitPointsManager>(); hitpointsManager.TellServerHealth(hitpointsManager.maxHealth); } }