Ejemplo n.º 1
0
        public static Pax4WorldLavaAndIce CreateAndEnterQuest(int p_missioIndex = -1)
        {
            Pax4Model._current.DxChild();

            Pax4WorldLavaAndIce quest = null;

            switch (Pax4WorldLavaAndIce._questType)
            {
            case ELavaAndIceQuestType._LAVA_AND_ICE_PROLOGUE:
                quest = new Pax4WorldLavaAndIcePrologue("", null);
                break;

            case ELavaAndIceQuestType._LAVA_AND_ICE_EQUILIBRIUM:
                //quest = new Pax4WorldLavaAndIcePrologue(Vector3.Backward * Pax4WorldLavaAndIce._questPosition, Vector3.Zero, Vector3.One * Pax4WorldLavaAndIce._questScaleFactor, true);
                break;

            case ELavaAndIceQuestType._LAVA_AND_ICE_LAVA_GRAIL:
                //quest = new Pax4WorldLavaAndIcePrologue(Vector3.Backward * Pax4WorldLavaAndIce._questPosition, Vector3.Zero, Vector3.One * Pax4WorldLavaAndIce._questScaleFactor, true);
                break;

            case ELavaAndIceQuestType._LAVA_AND_ICE_ICE_GRAIL:
                //quest = new Pax4WorldLavaAndIcePrologue(Vector3.Backward * Pax4WorldLavaAndIce._questPosition, Vector3.Zero, Vector3.One * Pax4WorldLavaAndIce._questScaleFactor, true);
                break;

            case ELavaAndIceQuestType._LAVA_AND_ICE_DRAGONS:
                //quest = new Pax4WorldLavaAndIcePrologue(Vector3.Backward * Pax4WorldLavaAndIce._questPosition, Vector3.Zero, Vector3.One * Pax4WorldLavaAndIce._questScaleFactor, true);
                break;
            }

            quest.Enter();

            return(quest);
        }
Ejemplo n.º 2
0
        private void lavaandiceRetryBtn_Click()
        {
            ((Pax4SoundLavaAndIce)Pax4Sound._current)._lavaandiceButtonAccepted.Play();

            Pax4World._current.Dx();

            Pax4WorldLavaAndIce.CreateAndEnterQuest();

            Pax4Game._pause = false;

            Pax4UiStateLavaAndIceMission._currentMissionState.UpdateMedalSprite();
            Pax4UiStateLavaAndIceVictory.UpdateMedalSprite();
        }