Пример #1
0
    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
    }
Пример #2
0
 protected void OnIdle()
 {
     STATE = AgentStates_Topdown.IDLE;
 }