예제 #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();
    }
예제 #2
0
 private void  UpdateDestinyWayPoint()
 {
     navMeshController.UpdateDestinyPointNavMeshAgent(WayPoints[nextWayPoint].position);
 }