Exemple #1
0
 public override void EmitAffect(EmitAffectArgs args)
 {
     if (typeof(IPhysicalAttackingEventHandler).IsAssignableFrom(args.affect.GetType()) ||
         typeof(IMagicalAttackingEventHandler).IsAssignableFrom(args.affect.GetType()))
     {
         Destroy(gameObject, 2f);
     }
 }
Exemple #2
0
        public static void EmitAffects(Race own, EmitAffectArgs args)
        {
            var a = new Action <Race> (r => {
                var affectModule = r.GetModule <AffectModule> ();
                foreach (var affect in affectModule.affects)
                {
                    affect.EmitAffect(args);
                }
            });

            a.Invoke(own);
            a.Invoke(args.target);
        }
Exemple #3
0
 public override void EmitAffect(EmitAffectArgs args)
 {
     ableBurnAffect = typeof(IMagicalAttackingEventHandler).IsAssignableFrom(args.affect.GetType());
 }
Exemple #4
0
 public virtual void EmitAffect(EmitAffectArgs args)
 {
 }