EnemyBase.AgentChangedNodes C# (CSharp) Method

AgentChangedNodes() protected method

Is called when the Agnet changes Nodes.
protected AgentChangedNodes ( ) : void
return void
    protected override void AgentChangedNodes()
    {
        if (this.onNode.enemie == this)
        {
            this.onNode.enemie = null;
        }
        this.onNode = this.path[this.currentPathIndex];
        this.onNode.enemie = this;
    }