示例#1
0
    // 删除客户的人物模组
    private void RemoveEnemyCharacter(int id)
    {
        EnemyCharacter ec = (EnemyCharacter)_htEnemies[id];

        ec.Destroy();
        _htEnemies.Remove(id);
    }
示例#2
0
 // 删除所有客户的人物模组
 public void RemoveAllEnemyCharacter()
 {
     foreach (int id in _htEnemies.Keys)
     {
         EnemyCharacter ec = (EnemyCharacter)_htEnemies[id];
         ec.Destroy();
     }
     _htEnemies.Clear();
 }