Example #1
0
 public void EnterAttackGraph(PlayerAttackGraph graph, CombatNode startNode = null)
 {
     if (attackGraph == graph && startNode == null)
     {
         return;
     }
     attackGraph = graph;
     attackGraph.Initialize(anim, GetComponent <AttackBuffer>(), rb2d, airAttackTracker);
     attackGraph.EnterGraph(startNode);
 }
Example #2
0
 virtual public void OnNodeEnter()
 {
     attackGraph = this.graph as PlayerAttackGraph;
     active      = true;
 }
Example #3
0
 public void ExitAttackGraph()
 {
     attackGraph = null;
 }
Example #4
0
 virtual public void OnNodeEnter()
 {
     attackGraph = this.graph as PlayerAttackGraph;
     active      = true;
     attackGraph.playerController.OnAttackNodeEnter();
 }