protected override void OnReceiveBtnClicked(GameObject go) { Globals.Instance.EffectSoundMgr.Play("ui/ui_001"); if (this.Data == null) { return; } if (this.Data.IsComplete()) { return; } if (!this.Data.IsNotTakeReward()) { return; } MC2S_TakePayReward mC2S_TakePayReward = new MC2S_TakePayReward(); mC2S_TakePayReward.ActivityID = this.Data.ASPData.Base.ID; mC2S_TakePayReward.ProductID = this.Data.ASPItem.ProductID; Globals.Instance.CliSession.Send(768, mC2S_TakePayReward); }
private void HandleTakePayRewardCmd(CommandParser.Command param) { if (Globals.Instance.Player.ActivitySystem.SPData == null) { return; } int productID = 0; int.TryParse(param.GetParam(1), out productID); MC2S_TakePayReward mC2S_TakePayReward = new MC2S_TakePayReward(); mC2S_TakePayReward.ActivityID = Globals.Instance.Player.ActivitySystem.SPData.Base.ID; mC2S_TakePayReward.ProductID = productID; Globals.Instance.CliSession.Send(768, mC2S_TakePayReward); }