Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }