예제 #1
0
        private void Awake()
        {
            MemoryGame.Current.IsBusy = true;

            numberOfPlayers = MemoryGame.Current.Players;
            bool isSinglePlayer = numberOfPlayers == 1;

            SinglePlayerContainer.SetActive(isSinglePlayer);
            TwoPlayerContainer.SetActive(!isSinglePlayer);

            string gameMode = MemoryGame.Current.GetGameModeString();

            IHighscoreProvider highscoreProvider = MiscFactory.GetHighscoreProvider();

            Highscore = highscoreProvider.GetHighScore(gameMode);
            //Highscore = 777;
        }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MemoryGame"/> class.
 /// </summary>
 public MemoryGame()
     : this(MiscFactory.GetScoreCalculation(), MiscFactory.GetHighscoreProvider())
 {
 }