void EndGamePhaseBehavior()
 {
     switch (gamePhase)
     {
     case GamePhases.PlayerInteraction:
         gridManager.ClearGrid();
         break;
     }
     currentPhase.EndPhase();
 }
Example #2
0
 void EndGamePhaseBehavior()
 {
     switch (gamePhase)
     {
     case GamePhases.PlayerInteraction:
         gridManager.ClearGrid(true);
         tutorialManager.ClearActiveTutorials();
         break;
     }
     currentPhase.EndPhase();
 }
Example #3
0
 void EndGamePhaseBehavior()
 {
     Debug.Log("Ending phase " + gamePhase.ToString());
     switch (gamePhase)
     {
     case GamePhases.PlayerInteraction:
         gridManager.ClearGrid(true);
         tutorialManager.ClearActiveTutorials();
         break;
     }
     currentPhase.EndPhase();
 }
Example #4
0
    public void TriggerPhaseTransition(GamePhases inputPhase)
    {
        if (_currentPhaseBehavior)
        {
            _currentPhaseBehavior.EndPhase();
        }

        foreach (GamePhaseBehavior gpb in gamePhaseBehaviors)
        {
            if (gpb.phase == inputPhase)
            {
                gpb.StartPhase();
                _currentPhaseBehavior = gpb;
                if (sharedUIReference)
                {
                    sharedUIReference.SetSharedUIDisplay(_currentPhaseBehavior.sharedUI);
                }
            }
        }
    }