protected override void OnStart() { base.OnStart(); voteData = _bootstrap.GetModel(ModelTypes.TurningVote) as TurningVoteData; resources = _bootstrap.GetModel(ModelTypes.Resources) as ResourcesDataBase; voteData.VoteReceived += UpdateData; stack = new List <Action>(); }
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() { _console = _controller as ConsoleController; _resources = _bootstrap.GetModel(ModelTypes.Resources) as ResourcesDataBase; if (_console != null) { _console.ConsolePrint += AddLine; } }
protected override void OnStart() { base.OnStart(); _resources = _bootstrap.GetModel(ModelTypes.Resources) as ResourcesDataBase; GetChilds(); _controller.OnGameStart += StartGeneration; _controller.OnGameEnd += StopGeneration; }
protected override void OnStart() { base.OnStart(); _associationController = _controller as AssociationController; _resources = _bootstrap.GetModel(ModelTypes.Resources) as ResourcesDataBase; _associationController.AddAssociationObjectContent(this); ResetContent(); }
protected override void OnStart() { _serverController = _controller as NetworkServerController; _resources = _bootstrap.GetModel(ModelTypes.Resources) as ResourcesDataBase; _instances = new List <NetworkClientPrefabStructure>(); _serverController.OnAddClient += InstantiateClient; _serverController.OnClientStatsChange += InstantiateClient; _serverController.OnRemoveClient += RemoveClient; }
protected override void OnStart() { if (BlockAll) { return; } _resources = _bootstrap.GetModel(ModelTypes.Resources) as ResourcesDataBase; _characterSelection = _bootstrap.GetModel(ModelTypes.Characters) as CharacterSelectionData; _timeController = _bootstrap.GetController(ControllerTypes.Time) as TimeController; _timeController.GameTimeout += TimeOut; }
protected override void OnStart() { base.OnStart(); _registration = _bootstrap.GetController(ControllerTypes.Register) as RegisterController; _resources = _bootstrap.GetModel(ModelTypes.Resources) as ResourcesDataBase; _users = new List <CheckInInfoView>(); #if HAS_SERVER _registration.OnRegistryReceiveEnded += GenerateUsersList; #else GenerateUsersList(); #endif }
protected override void OnStart() { base.OnStart(); _scoreController = _bootstrap.GetController(ControllerTypes.Score) as ScoreController; _register = _bootstrap.GetController(ControllerTypes.Register) as RegisterController; _resourcesData = _bootstrap.GetModel(ModelTypes.Resources) as ResourcesDataBase; _timeController = _bootstrap.GetController(ControllerTypes.Time) as TimeController; if (_timeController != null) { _timeController.GameTimeout += TimeOut; } _SoundController = _bootstrap.GetController(ControllerTypes.SoundSFX) as SoundController; _questionsData = _bootstrap.GetModel(ModelTypes.Questions) as QuestionsData; _AssociationData = _bootstrap.GetModel(ModelTypes.Association) as AssociationData; }
protected override void OnStart() { base.OnStart(); _pagesController = _bootstrap.GetController(ControllerTypes.Page) as PagesController; _scoreController = _bootstrap.GetController(ControllerTypes.Score) as ScoreController; _timeController = _bootstrap.GetController(ControllerTypes.Time) as TimeController; _sfxController = _bootstrap.GetController(ControllerTypes.SoundSFX) as SFXController; _registerController = _bootstrap.GetController(ControllerTypes.Register) as RegisterController; _resources = _bootstrap.GetModel(ModelTypes.Resources) as ResourcesDataBase; _images = _bootstrap.GetModel(ModelTypes.Images) as ImagesDataBase; _gridDatabase = _bootstrap.GetModel(ModelTypes.Grid) as GridDatabase; _bootstrap.AppStarted += () => { _grids = new List <GridCanvas2D>(); List <Models.GridLayout> gList = _gridDatabase.GetGridsByGame(Type); for (int i = 0; i < gList.Count; i++) { _grids.Add(new GridCanvas2D(gList[i])); } }; _cardsPool = new List <List <Sprite> >(); _cards = new List <MemoryCard>(); OnGamePrepare += GamePrepare; OnGameEnd += GameEnded; if (hasTimer) { _timeController.GameTimeout += TimeOut; } _cardsPool = _images.GetImagesByCategory(ImageCategory.MemoryCard, true); _cardBack = _images.GetImageByCategory(ImageCategory.MemoryBack); }
protected override void OnStart() { base.OnStart(); values = new List <float>(); valuesNormalized = new List <float>(); resources = _bootstrap.GetModel(ModelTypes.Resources) as ResourcesDataBase; groupsInfo = _bootstrap.GetModel(ModelTypes.Group) as GroupsInfo; quizTurning = _bootstrap.GetController(ControllerTypes.Quiz) as QuizTurningController; #if HAS_TURNING voteData = _bootstrap.GetModel(ModelTypes.TurningVote) as TurningVoteData; voteData.VoteUpdated += UpdateValues; #endif ctrl = _bootstrap.GetController(_controllerType); ctrl.OnGameEnd += UpdateValues; discs = new List <Image>(); }