private void Initiallize() { defaultGameMode = new DefaultGameMode(); defaultGameState1 = new DefaultGameState1(); defaultGameState2 = new DefaultGameState2(); defaultGameMode.InitailizeGameState(defaultGameState1); defaultGameMode.InitailizeGameState(defaultGameState2); TestRunnerHelper.Reset(); }
public IEnumerator Start() { defaultGameMode = new DefaultGameMode(); Assert.AreEqual(false, defaultGameMode.Start()); defaultGameState1 = new DefaultGameState1(); defaultGameState2 = new DefaultGameState2(); defaultGameMode.InitailizeGameState(defaultGameState1); defaultGameMode.InitailizeGameState(defaultGameState2); Assert.AreEqual(true, defaultGameMode.Start()); GameState tempGameState = defaultGameMode.GetGameState(EGameState.DefaultGameState1_1); Assert.AreEqual(EGameState.DefaultGameState1_1, tempGameState.ID); tempGameState = defaultGameMode.GetGameState(EGameState.DefaultGameState1_2); Assert.AreEqual(EGameState.DefaultGameState1_2, tempGameState.ID); yield return(null); }