private void RespawnGui() { // If player set and dead then display respawn button if (_player != null && _player.isDead) { Vector2 screenCenter = new Vector2(Screen.width / 2, Screen.height / 2); if (GUI.Button( new Rect(screenCenter.x - (respawnButtonWidth / 2), screenCenter.y - (respawnButtonHeight / 2), respawnButtonWidth, respawnButtonHeight), "Respawn")) { _syncManager.BroadcastRespawn(); } } }