private void OnGameplayFadeOutCallback() { bgMng.StartBackground(); videoAlreadyWhatched = false; DifficultyManager.StartGame(); int firstGame = PlayerPrefs.GetInt("Tutorial", 0); if (firstGame == 0) { readInput = false; isTutorial = true; tutorialTimes++; gameplayPanel.EnableTutorialPanel(true); spawnCtrl.StartSpawn(ShapeController.GetShapeByIndex(ShapeController.GetCurrentShapeIndex() - 1)); CoroutineController.StartRoutine(StartTutotrial, 6.5f); } else { spawnCtrl.StartSpawn(); readInput = true; isTutorial = false; } startState = true; }
public override void Enter() { gm = context.GetGameManager(); musicCtrl = gm.GetMusicController(); uiMng = gm.GetUIManager(); mainMenuPanel = uiMng.GetMenu <UIMenu_MainMenu>(); uiMng.SetCurrentMenuAnimation <UIMenu_MainMenu>("MainMenuIn"); CoroutineController.StartRoutine(() => mainMenuPanel.EnablePanelContainer(true), 0.01f); musicCtrl.PlayMainMenuClip(); mainMenuPanel.StartGameButtonPressed = StartGameButtonPressed; }
private void HandleOnShapeGuessed() { if (i.shapesToAdd.Count == 0) { return; } shapeGuessed++; if (shapeGuessed == shapesToAdd[0].addNewShapeAfter) { CoroutineController.StartRoutine(AddNewShape, 0.5f); } }