public void RemovePlayer(long char_idx) { FightPlayer player = null; if (m_fight_players.TryGetValue(char_idx, out player)) { player.Destroy(); } m_fight_players.Remove(char_idx); }
public void RemovePlayer(long char_idx) { FightPlayer player = null; if (m_fight_players.TryGetValue(char_idx, out player)) { player.Destroy(); CommonObjectPools.Despawn(player); } m_fight_players.Remove(char_idx); }