protected void StunEffect(Transform pos) { if (stunEffect != null) { return; } stunEffect = ObjectPool.instance.GetStunEffect(); stunEffect.transform.position = pos.position; stunEffect.Live(); }
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())); }
public override object Clone() { StunEffect instance = (StunEffect)base.Clone(); return(instance); }
public StunEffect(StunEffect sideEffect) : base(sideEffect) { }