public override void RegisterPort() { spellAgent = graph.Owner as SpellAgent; AddValueOutPort("SpellAgent", () => { return(spellAgent); }); AddValueOutPort("SpellTarget", () => { return(spellAgent.SpellTargets); }); AddValueOutPort("FirePos", () => { return(spellAgent.FirePos); }); }
public override void Init() { base.Init(); SpellAgent sa = graph.Owner as SpellAgent; sa.OnKill += () => o.Call(); }
public override void Init() { SpellAgent sa = graph.Owner as SpellAgent; sa.OnAttackLand += () => o.Call(); }