Exemple #1
0
        void CreatePlayerNavigation()
        {
            playerNavGraph = new PlayerNavigationGraph(pathGraph);
            PlayerNavigation playerNavigation = gameObject.GetComponent <PlayerNavigation>();

            playerNavigation.UpdateWaypoints(playerNavGraph.graph);
        }
Exemple #2
0
        void Start()
        {
            playerNavigation = FindObjectOfType <PlayerNavigation>();
            if (playerNavigation == null)
            {
                Debug.LogError("PlayerNavigation not found in scene");
            }

            playerCameraControl = gameObject.GetComponent <PlayerCamera>();
        }