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