Пример #1
0
 public async void Initialize(IGameMode gameMode)
 {
     _gameState.Reset();
     gameMode.Initialize(_gameState);
     if (_gameState.Cottage.IsBought)
     {
         await SelectSummerOrWinterVisitor();
     }
 }
Пример #2
0
    //ゲーム毎の変数を初期化
    private void gameInitialize()
    {
        gameMode.Initialize();
        Timer.Instance.Stop();
        ResultUI.Instance.Initialize();
        GameUI.Instance.Display();

        score = 0;
        shots = 0;
    }
Пример #3
0
 /// <summary>
 /// LoadContent will be called once per game and is the place to load
 /// all of your content.
 /// </summary>
 protected override void LoadContent()
 {
     gameMode.LoadResources(services.GetService <IResourceManager>());
     gameMode.Initialize();
 }
Пример #4
0
 public void ChangeGameMode(IGameMode gameMode)
 {
     m_currentGameMode = gameMode;
     m_currentGameMode.Initialize();
     m_currentGameMode.LoadContent();
 }