SpellEffect.ApplyEffect C# (CSharp) Method

ApplyEffect() public method

Applies the effect.
public ApplyEffect ( ) : void
return void
    public virtual void ApplyEffect()
    {
        //Code to apply whatever effect is occuring
        Active=true;
    }

Usage Example

Ejemplo n.º 1
0
    protected void CheckHasEffect(WizardBehavior player)
    {
        SpellEffect effect = GetComponentInChildren <SpellEffect>();

        if (effect)
        {
            effect.ApplyEffect(player.gameObject);
        }
    }
All Usage Examples Of SpellEffect::ApplyEffect