protected override void OnClose()
 {
     if (this.mTransfer != null)
     {
         GameLogic.SetPause(false);
         this.AniDisable();
         GameLogic.Release.Game.JoyEnable(true);
         Facade.Instance.SendNotification("BATTLE_CHOOSESKILL_TO_BATTLE_CLOSE");
         if (this.mTransfer.type == ChooseSkillProxy.ChooseSkillType.eLevel)
         {
             if ((GameLogic.Self != null) && (GameLogic.Self.OnLevelUp != null))
             {
                 GameLogic.Self.OnLevelUp(this.level);
             }
             if ((GameLogic.Release.Mode != null) && (GameLogic.Release.Mode.RoomGenerate != null))
             {
                 RoomGenerateBase.EventCloseTransfer data = new RoomGenerateBase.EventCloseTransfer {
                     windowid = WindowID.WindowID_ChooseSkill
                 };
                 GameLogic.Release.Mode.RoomGenerate.EventClose(data);
             }
         }
         this.mTransfer = null;
     }
 }
    protected override void OnOpen()
    {
        IProxy proxy = Facade.Instance.RetrieveProxy("ChooseSkillProxy");

        if (proxy != null)
        {
            this.mTransfer = proxy.Data as ChooseSkillProxy.Transfer;
            GameLogic.SetPause(true);
            this.InitUI();
        }
    }
示例#3
0
 private void HeroDroping()
 {
     if (this.bDropStart && (this.frameCount <= (Time.frameCount - 3)))
     {
         this.mDropStartTime += Updater.delta;
         float num = this.mDropStartTime / this.mDropTime;
         num = MathDxx.Clamp01(num);
         GameLogic.Self.SetPosition(new Vector3(GameLogic.Self.position.x, this.starty * this.curve.Evaluate(num), GameLogic.Self.position.z));
         if ((num == 1f) && (GameLogic.Self.position.y <= 0f))
         {
             GameLogic.Self.SetPosition(new Vector3(GameLogic.Self.position.x, 0f, GameLogic.Self.position.z));
             this.bDropStart = false;
             this.CreateSmoke();
             GameLogic.Hold.Sound.PlayBattleSpecial(0x4c4b45, Vector3.zero);
             GameNode.CameraShake(CameraShakeType.FirstDrop);
             this.action.AddActionWaitDelegate(0.6f, delegate {
                 GameLogic.Release.Game.ShowJoy(true);
                 GameLogic.Release.Game.SetRunning();
                 this.DeInit();
                 if (GameLogic.Hold.BattleData.GetMode() == GameMode.eLevel)
                 {
                     ChooseSkillProxy.Transfer transfer;
                     if (LocalSave.Instance.BattleIn_GetIn())
                     {
                         if (LocalSave.Instance.BattleIn_GetLevelUpSkills() != null)
                         {
                             transfer = new ChooseSkillProxy.Transfer {
                                 type = (ChooseSkillProxy.ChooseSkillType)LocalSave.Instance.BattleIn_GetLevelUpType()
                             };
                             Facade.Instance.RegisterProxy(new ChooseSkillProxy(transfer));
                             WindowUI.ShowWindow(WindowID.WindowID_ChooseSkill);
                         }
                     }
                     else if (GameLogic.Self.m_EntityData.attribute.ExtraSkill.Value > 0L)
                     {
                         transfer = new ChooseSkillProxy.Transfer {
                             type = ChooseSkillProxy.ChooseSkillType.eFirst
                         };
                         Facade.Instance.RegisterProxy(new ChooseSkillProxy(transfer));
                         WindowUI.ShowWindow(WindowID.WindowID_ChooseSkill);
                     }
                 }
                 LocalSave.Instance.BattleIn_UpdateIn();
             });
         }
     }
 }