void Update() { if (_activeTutorial == true) { gameLogicController._swipeDirectionController.getTouchDirection(); if (_currentTutorialIndex == 0 && gameLogicController._swipeDirectionController.mMessageIndex == 2) { goToNextTutorial(); } if (_currentTutorialIndex == 1 && gameLogicController._swipeDirectionController.mMessageIndex == 1) { goToNextTutorial(); } if (_currentTutorialIndex == 2 && gameLogicController._swipeDirectionController.mMessageIndex == 3) { goToNextTutorial(); } if (_currentTutorialIndex == 3 && gameLogicController._swipeDirectionController.mMessageIndex == 4) { _activeTutorial = false; tutorialParts[_currentTutorialIndex].SetActive(false); _playerData.completedTutorial = true; gameLogicController.resumeGame(); _playerData.savePlayerData(); GameAnaliticsController analiticsController = GameObject.FindObjectOfType <GameAnaliticsController>(); analiticsController.finishGameTutorial(); } } }
public void getReward() { int explosionsCount = gameBalanceData.finalChanceExplosionsBonusCount; if (gameLogicController._currentBlocks.Count < explosionsCount) { explosionsCount = gameLogicController._currentBlocks.Count; } for (int explosionIndex = 0; explosionIndex < explosionsCount; explosionIndex++) { GameObject firstBlock = gameLogicController._currentBlocks.Dequeue(); Destroy(firstBlock); } gameLogicController.startMoveUpBlocks(); gameLogicController.resumeGame(); }