示例#1
0
 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();
 }
示例#2
0
 public void SetCurrentGameType(IDs.GameType type)
 {
     _gameType = type;
 }