Пример #1
0
 private void RefreshState(GameState.GameMode mode)
 {
     switch(mode)
     {
         case GameState.GameMode.Placement:
             gameObject.SetActive(IsLocalStar);
             break;
         case GameState.GameMode.Playing:
             gameObject.SetActive(!IsLocalStar);
             break;
         case GameState.GameMode.PostGame:
             gameObject.SetActive(true);
             break;
     }
 }
Пример #2
0
        private void _OnGameModeChanged(GameState.GameMode mode)
        {
            switch (mode)
            {
            case GameState.GameMode.Playing:
                UIController.SnackbarText.text = "Find hearth of other players!";
                break;

            case GameState.GameMode.PostGame:
                if (heartsBar.current > 0)
                {
                    UIController.SnackbarText.text = "You WIN !!!";
                }
                break;
            }
        }