private void OnCreateClick(GameObject go)
 {
     Globals.Instance.EffectSoundMgr.Play("ui/ui_001");
     if (Tools.MoneyNotEnough(ECurrencyType.ECurrencyT_Money, this.createCost, 0))
     {
         return;
     }
     if (!Globals.Instance.Player.ItemSystem.EnoughItem2CreateAwakeItem(this.mItemInfo.ID, 1, false))
     {
         GameUIManager.mInstance.ShowMessageTipByKey("awakeItemCreateError0", 0f, 0f);
         return;
     }
     MC2S_AwakeItemCreate mC2S_AwakeItemCreate = new MC2S_AwakeItemCreate();
     mC2S_AwakeItemCreate.InfoID = this.mItemInfo.ID;
     Globals.Instance.CliSession.Send(536, mC2S_AwakeItemCreate);
 }
Beispiel #2
0
 private void HandleAwakeItemCreateCmd(CommandParser.Command param)
 {
     int infoID = 0;
     int.TryParse(param.GetParam(1), out infoID);
     MC2S_AwakeItemCreate mC2S_AwakeItemCreate = new MC2S_AwakeItemCreate();
     mC2S_AwakeItemCreate.InfoID = infoID;
     Globals.Instance.CliSession.Send(536, mC2S_AwakeItemCreate);
 }