Пример #1
0
 private void OnReceiveBtnClicked(GameObject go)
 {
     if (this.Data == null || this.Data.Info == null)
     {
         return;
     }
     if (!this.Data.IsComplete() || this.Data.IsTakeReward())
     {
         return;
     }
     if (this.Data.IsWelfare)
     {
         MC2S_TakeWelfare mC2S_TakeWelfare = new MC2S_TakeWelfare();
         mC2S_TakeWelfare.ID = this.Data.Info.ID;
         Globals.Instance.CliSession.Send(739, mC2S_TakeWelfare);
     }
     else
     {
         MC2S_TakeFundLevelReward mC2S_TakeFundLevelReward = new MC2S_TakeFundLevelReward();
         mC2S_TakeFundLevelReward.ID = this.Data.Info.ID;
         Globals.Instance.CliSession.Send(737, mC2S_TakeFundLevelReward);
     }
 }
Пример #2
0
 private void HandleTakeFundLevelRewardCmd(CommandParser.Command param)
 {
     int iD = 0;
     int.TryParse(param.GetParam(1), out iD);
     MC2S_TakeFundLevelReward mC2S_TakeFundLevelReward = new MC2S_TakeFundLevelReward();
     mC2S_TakeFundLevelReward.ID = iD;
     Globals.Instance.CliSession.Send(737, mC2S_TakeFundLevelReward);
 }