public void nextPhase() { // move to the next phase of the game GAME_PHASE nextPhase = WARGame.Phase.Value.current + 1; var phase = GAME_PHASE.GetValues(typeof(GAME_PHASE)).Cast <GAME_PHASE>().Last(); phase = nextPhase > phase ? default(GAME_PHASE) + 1 : nextPhase; WARGame.SetPhase(phase); }
// called when we move to the gameplay mode public void initMode(Epoch <GAME_MODE> modeEpoch) { // start in the movement phase WARGame.SetPhase(GAME_PHASE.movement); }