Esempio n. 1
0
        public void Init()
        {
            _inputWorker = WorkerManager.Get <PlayerInputWorker>();

            _tr.position            = pathCreator.path.GetPointAtTime(positionOnPathAtStart);
            _currentDistanceOnTrack = pathCreator.path.GetClosestDistanceAlongPath(_tr.position);

            _listenToPlayerInput = true;
        }
Esempio n. 2
0
        private void Start()
        {
            WorkerManager.Get <PlayerInputWorker>().EnableActions();

            wagon.Init();
        }