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); }
virtual public void OnNodeEnter() { attackGraph = this.graph as PlayerAttackGraph; active = true; }
public void ExitAttackGraph() { attackGraph = null; }
virtual public void OnNodeEnter() { attackGraph = this.graph as PlayerAttackGraph; active = true; attackGraph.playerController.OnAttackNodeEnter(); }