Ejemplo n.º 1
0
 private void CancelSpell()
 {
     if (CurrentSpell == null || CurrentSpell.Equals(null))
     {
         CurrentSpell = null;
         SpellElement = SpellElement.None;
         SpellTier    = SpellTier.None;
         State        = SpellCastingState.Select;
     }
     else
     {
         bool success = CurrentSpell.Deactivate();
         if (success)
         {
             CurrentSpell = null;
             SpellElement = SpellElement.None;
             SpellTier    = SpellTier.None;
             State        = SpellCastingState.Select;
         }
     }
 }