public void Init() { _inputWorker = WorkerManager.Get <PlayerInputWorker>(); _tr.position = pathCreator.path.GetPointAtTime(positionOnPathAtStart); _currentDistanceOnTrack = pathCreator.path.GetClosestDistanceAlongPath(_tr.position); _listenToPlayerInput = true; }
private void Start() { WorkerManager.Get <PlayerInputWorker>().EnableActions(); wagon.Init(); }