/// <summary> /// RPC's the bot Spawn() if the player is the master client and the player count /// is below maxPlayersForBot /// </summary> void BotRespawn() { if (PhotonNetwork.IsMasterClient && PhotonNetwork.CurrentRoom.PlayerCount <= maxPlayersForBot) { pDeath.Spawn(); } }
//tries to revive the player public void TryRevive() { pd.Spawn(); }