示例#1
0
/*
 *  public void AddToPlayersInRange(GameObject AddPlayer)
 *  {
 *      PlayersInRange.Add(AddPlayer.GetComponent<CharacterAttention>().GetOwner());
 *  }
 *
 *  public void RemoveFromPlayersInRanger(GameObject RemovePlayer)
 *  {
 *      PlayersInRange.Remove(RemovePlayer.GetComponent<CharacterAttention>().GetOwner());
 *  }
 */
    public void OnDestroy()
    {
        /*for (int i = 0; i < EnemiesInRange.Count; i++)
         * {
         *  EnemiesInRange[i].RemoveFromEnemiesInRange(this);
         * }*/
        SpawnedBy.SwarmlingDied(SwarmlingID);
    }