コード例 #1
0
        /// <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);
        }
コード例 #2
0
 protected override void OnFire()
 {
     var damageEffect = EffectController.Create <EffectDamage>(Target, (effect) => effect.Damage = DamageOutput);
 }