Exemplo n.º 1
0
 /// <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();
     }
 }
Exemplo n.º 2
0
 //tries to revive the player
 public void TryRevive()
 {
     pd.Spawn();
 }