public void respawnPlayer( ) { // Resets the player character's position to the initial room transform.position = transform.parent.position; // Resets them player's XP values m_xpManager.resetXP( ); m_healthManager.resetHealth( ); gameObject.GetComponent <SpriteRenderer>().enabled = true; StartCoroutine(waitToFade( )); }