public void StartGame() { Pause(); _board.Init(); _board.OnWin = () => { StartCoroutine(WinGame()); }; _currentGametype = GameManager.Instance.GetCurrentGameType(); if (_currentGametype == IDs.GameType.Steps) { _maxAmountOfSteps = GameManager.Instance.GetMaxAmountOfSteps(); _completedSteps = 0; } else { _gameplayTime = 0; _maxGameplayTime = GameManager.Instance.GetMaxGameplayTimeInMins() * 60; } Unpause(); }
public void SetCurrentGameType(IDs.GameType type) { _gameType = type; }