Example #1
0
    protected void StunEffect(Transform pos)
    {
        if (stunEffect != null)
        {
            return;
        }

        stunEffect = ObjectPool.instance.GetStunEffect();
        stunEffect.transform.position = pos.position;
        stunEffect.Live();
    }
Example #2
0
        public override string DoAction()
        {
            foreach (IEffect e in Target.Effects)
            {
                if (e.GetName().ToLower() == "stun")
                {
                    return(string.Format("\t{0} attempted to stun {1}, but {1} is already stunned", Character.StatusString(), Target.StatusString()));
                }
            }
            IEffect bleh = new StunEffect(Character, 3);

            bleh.Setup(Target);
            return(string.Format("\t{0} BONKS {1} over the head doing no damage, but stunning them", Character.StatusString(), Target.StatusString()));
        }
Example #3
0
    public override object Clone()
    {
        StunEffect instance = (StunEffect)base.Clone();

        return(instance);
    }
Example #4
0
 public StunEffect(StunEffect sideEffect) : base(sideEffect)
 {
 }