Ejemplo n.º 1
0
        private void Initiallize()
        {
            defaultGameMode   = new DefaultGameMode();
            defaultGameState1 = new DefaultGameState1();
            defaultGameState2 = new DefaultGameState2();

            defaultGameMode.InitailizeGameState(defaultGameState1);
            defaultGameMode.InitailizeGameState(defaultGameState2);

            TestRunnerHelper.Reset();
        }
Ejemplo n.º 2
0
        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);
        }