Exemple #1
0
 void Start()
 {
     pathFindingMesh            = FindObjectOfType <PathfindingShiftedMesh>();
     status                     = Status.Wait;
     playerController           = GetComponent <IPlayerController>();
     pathVisualizer             = GetComponent <IPathVisualizer>();
     _TimeToNextWaypointRequest = Random.Range(_MinTimeToNextPoint, _MaxTimeToNextPoint);
 }
 public GridNavigationController(IMessageBroker messageBroker, INavigationGridAgent gridAgent,
                                 IPathFindService pathFindService, IGraph graph, IPathVisualizer pathVisualizer, IPathAskView pathAskView,
                                 IPathIntersectionService pathIntersectionService,
                                 INavigationGridAgentCollectorService navigationGridAgentCollector)
 {
     _messageBroker                = messageBroker;
     _gridAgent                    = gridAgent;
     _pathFindService              = pathFindService;
     _graph                        = graph;
     _pathVisualizer               = pathVisualizer;
     _pathAskView                  = pathAskView;
     _pathIntersectionService      = pathIntersectionService;
     _navigationGridAgentCollector = navigationGridAgentCollector;
 }