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