public override void Create() { Pax4UiState state = null; state = new Pax4UiStateLavaAndIceChooseQuest("chooseQuest", this); AddUiState(state); Enter(state); state = new Pax4UiStateLavaAndIceChooseMissionPrologue("Prologue", this); AddUiState(state); //state = new Pax4UiStateLavaAndIceChooseMissionEquilibrium("Equilibrium", this); //AddState(state); //state = new Pax4UiStateLavaAndIceChooseMissionEquilibrium("LavaGrail", this); //AddState(state); //state = new Pax4UiStateLavaAndIceChooseMissionEquilibrium("IceGrail", this); //AddState(state); //state = new Pax4UiStateLavaAndIceChooseMissionEquilibrium("Dragons", this); //AddState(state); state = new Pax4UiStateLavaAndIceInstructions("instructions", null); AddUiState(state); state = new Pax4UiStateLavaAndIceMissionDifficulty("difficulty", this); AddUiState(state); state = new Pax4UiStateLavaAndIceMenu("menu", this); AddUiState(state); state = new Pax4UiStateLavaAndIceVictory("victory", this); AddUiState(state); state = new Pax4UiStateLavaAndIceDefeat("defeat", this); AddUiState(state); state = new Pax4UiStateLavaAndIceMission("fgLava", this, Pax4WorldLavaAndIce.ELavaAndIceMissionType._LAVA); AddUiState(state); state = new Pax4UiStateLavaAndIceMission("fgIce", this, Pax4WorldLavaAndIce.ELavaAndIceMissionType._ICE); AddUiState(state); state = new Pax4UiStateLavaAndIceMission("fgLavaAndIce", this, Pax4WorldLavaAndIce.ELavaAndIceMissionType._LAVA_AND_ICE); AddUiState(state); }
public override void Enter() { Pax4ParticleEffect._current.Enable(); _currentMissionState = this; _scoreSpriteModifier.Ini(0.0f, 0.0f, true, 0.0f); if (Pax4WorldLavaAndIce._missionIndex > 0) { String highScoreName = Pax4UiStateLavaAndIceChooseQuest._questName + "_" + Pax4WorldLavaAndIce._missionIndex + "_HighScore"; ((Pax4SpriteText)_highScoreSprite).SetText(Pax4Tools.NumberCommaFormat(Pax4UiLavaAndIceQuestScore._score[highScoreName])); } base.Enter(); }