protected override void OnStart() { _resources = _bootstrap.GetModel(ModelTypes.Resources) as ResourcesDataBase; _tracksInfo = _bootstrap.GetModel(ModelTypes.Tracks) as RunTracks; _controller = _bootstrap.GetController(ControllerTypes.Run) as RunController; _controller.Reset += ResetPool; StartCoroutine(InstantiateObjectsRoutine()); }
protected override void OnStart() { _runController = _bootstrap.GetController(ControllerTypes.Run) as RunController; _runController.OnGameStart += GetSaders; }