Exemple #1
0
        private void OnHeroRemoved(object sender, Hero e)
        {
            var founder = Heroes.Find(x => x.Hero.Equals(e));

            if (founder != null)
            {
                Heroes.Remove(founder);
                if (founder.IsAlly)
                {
                    AllyHeroes.Remove(founder);
                }
                else
                {
                    EnemyHeroes.Remove(founder);
                }
            }
        }
Exemple #2
0
        private void OnHeroRemoved(object sender, Hero e)
        {
            var founder = Heroes.Find(x => x.Hero.Equals(e));

            if (founder != null)
            {
                Heroes.Remove(founder);
                if (founder.IsAlly)
                {
                    AllyHeroes.Remove(founder);
                }
                else
                {
                    EnemyHeroes.Remove(founder);
                }
                Log.Error($"ON REMOVED -> {e.Name}");
            }
        }
Exemple #3
0
 void OnHeroDeath(int id)
 {
     Heroes.Remove(Heroes.Find(e => e.id == id));
     allCharacters.Remove(id);
 }