protected void OnMove() { STATE = AgentStates_Topdown.IDLE; transform.parent.right = agent.NextWayPoint - transform.parent.position; transform.parent.position = Vector3.Lerp(agent.CurrentWaypointPosition, agent.CurrentPath.Peek(), agent.MoveTimeCurrent / agent.MoveTimeTotal); Debug.DrawLine(transform.parent.position, agent.CurrentPath.Peek());//Direção }
protected void OnIdle() { STATE = AgentStates_Topdown.IDLE; }