Пример #1
0
    private void SeekDestination()
    {
        Vector3 randomPosition = new Vector3(Random.Range(-25.0f, 25.0f), 0, Random.Range(-25.0f, 25.0f));

        navMeshAgentController.SetDestination(randomPosition);
    }
Пример #2
0
    private void SeekNewPosition()
    {
        Vector3 randomPosition = new Vector3(Random.Range(-50, 50), 0, Random.Range(-50, 50));

        navMeshAgentController.SetDestination(randomPosition);
    }