SpellEffect.CancelEffect C# (CSharp) Méthode

CancelEffect() public méthode

End the effect. By default it will destroy this spell effect.
public CancelEffect ( ) : void
Résultat void
    public virtual void CancelEffect()
    {
        Active=false;
        Component.DestroyImmediate (this);
    }

Usage Example

Exemple #1
0
 public override bool UnEquipEvent(int slotNo)
 {
     if (((slotNo == 9) || (slotNo == 10)) && (objInt.item_id != 54))    //Not the ring of humility
     {
         if (SpellEffectApplied != null)
         {
             SpellEffectApplied.CancelEffect();
             return(true);
         }
     }
     return(false);
 }
All Usage Examples Of SpellEffect::CancelEffect