示例#1
0
 public void AddPlayer(PhotonPlayerController player)
 {
     if (!SensedPlayers.Contains(player) && !player.GetComponent <GeneralStatistics>().Dead)
     {
         SensedPlayers.Add(player);
         player.GetComponent <GeneralStatistics>().AddMonsterSense(this);
     }
 }
示例#2
0
 public void RemovePlayer(PhotonPlayerController player)
 {
     if (SensedPlayers.Contains(player))
     {
         player.GetComponent <GeneralStatistics>().RemoveMonsterSenser(this);
         SensedPlayers.Remove(player);
     }
 }