Exemplo n.º 1
0
    // Update is called once per frame
    void Update()
    {
        RaycastHit hit;

        if (!visionController.canSeePlayer(out hit, true))
        {
            stateMachine.ActivateState(stateMachine.AlertState);

            return;
        }

        navMeshController.UpdateDestinyPointNavMeshAgent();
    }
Exemplo n.º 2
0
 private void  UpdateDestinyWayPoint()
 {
     navMeshController.UpdateDestinyPointNavMeshAgent(WayPoints[nextWayPoint].position);
 }