/// <summary> /// Helper method which creates and returns an EffectController. /// </summary> public static EffectController Create <T>(string identity, GameObject target, Action <T> onAddEffect = null) where T : Effect { var instance = new EffectController(); instance.Setup(identity, target, onAddEffect); return(instance); }
protected override void OnFire() { var damageEffect = EffectController.Create <EffectDamage>(Target, (effect) => effect.Damage = DamageOutput); }