public void InvokeAction(EnviromentEventArgument args) { base.InvokeAction(args); foreach (GameObject target in args.Targets) { DamageAction damageTheTarget = target.GetAction <DamageAction>(); if (damageTheTarget != null) { damageTheTarget.InvokeAction(new DamageEventArgument ( args, args.Invokee, new GameObject[] { target }, args.Frame, DamageAttribute )); } } }