public async void Initialize(IGameMode gameMode) { _gameState.Reset(); gameMode.Initialize(_gameState); if (_gameState.Cottage.IsBought) { await SelectSummerOrWinterVisitor(); } }
//ゲーム毎の変数を初期化 private void gameInitialize() { gameMode.Initialize(); Timer.Instance.Stop(); ResultUI.Instance.Initialize(); GameUI.Instance.Display(); score = 0; shots = 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(); }
public void ChangeGameMode(IGameMode gameMode) { m_currentGameMode = gameMode; m_currentGameMode.Initialize(); m_currentGameMode.LoadContent(); }