コード例 #1
0
ファイル: CommandParser.cs プロジェクト: floatyears/Decrypt
 private void HandleTrialFarmStartCmd(CommandParser.Command param)
 {
     MC2S_TrialFarmStart ojb = new MC2S_TrialFarmStart();
     Globals.Instance.CliSession.Send(634, ojb);
 }
コード例 #2
0
 private void OnSaoDangBtnClick(GameObject go)
 {
     Globals.Instance.EffectSoundMgr.Play("ui/ui_001");
     if (Globals.Instance.Player.Data.TrialFarmTimeStamp == 0)
     {
         if (Globals.Instance.Player.Data.TrialOver == 0 && Globals.Instance.Player.Data.TrialWave < Globals.Instance.Player.Data.TrialMaxWave)
         {
             GameUIManager.mInstance.uiState.TrailCurLvl = Globals.Instance.Player.Data.TrialWave;
             this.mSaoDangBeginLvl = Globals.Instance.Player.Data.TrialWave;
             if (Globals.Instance.Player.Data.VipLevel >= 9u)
             {
                 MC2S_TrialFarmStop ojb = new MC2S_TrialFarmStop();
                 Globals.Instance.CliSession.Send(636, ojb);
             }
             else
             {
                 MC2S_TrialFarmStart ojb2 = new MC2S_TrialFarmStart();
                 Globals.Instance.CliSession.Send(634, ojb2);
             }
         }
     }
     else
     {
         int num = Globals.Instance.Player.GetTimeStamp() - Globals.Instance.Player.Data.TrialFarmTimeStamp;
         int num2 = Mathf.Max(0, Mathf.Min(Globals.Instance.Player.Data.TrialMaxWave, Mathf.FloorToInt((float)num / 30f)));
         GameMessageBox gameMessageBox = GameMessageBox.ShowMessageBox(Singleton<StringManager>.Instance.GetString("trailTower6", new object[]
         {
             num2
         }), MessageBox.Type.OKCancel, null);
         GameMessageBox expr_189 = gameMessageBox;
         expr_189.OkClick = (MessageBox.MessageDelegate)Delegate.Combine(expr_189.OkClick, new MessageBox.MessageDelegate(this.CancelSaoDang));
     }
 }