示例#1
0
 public override void RegisterPort()
 {
     spellAgent = graph.Owner as SpellAgent;
     AddValueOutPort("SpellAgent", () => { return(spellAgent); });
     AddValueOutPort("SpellTarget", () => { return(spellAgent.SpellTargets); });
     AddValueOutPort("FirePos", () => { return(spellAgent.FirePos); });
 }
示例#2
0
        public override void Init()
        {
            base.Init();
            SpellAgent sa = graph.Owner as SpellAgent;

            sa.OnKill += () => o.Call();
        }
示例#3
0
        public override void Init()
        {
            SpellAgent sa = graph.Owner as SpellAgent;

            sa.OnAttackLand += () => o.Call();
        }