Пример #1
0
 public void SpellAdd(SpellBase spell)
 {
     SpellRemoveDead();
     if(mSpells.FindIndex(x => x.IsSpellMatch(spell)) == -1) {
         mSpells.Add(spell.Start(this));
         if(mSpells.Count > 1)
             Debug.LogWarning("more than one spell? spell count: " + mSpells.Count);
     }
 }