private void ClickBuyPopUpLeftBtCallBack() { if (currentCount > controller.GetStoreItemLeftMaxCount(currentId)) { OpenNotEnoughAlert(""); } else { UILockManager.SetGroupState(UIEventGroup.Middle, UIEventState.WaitNetwork); Data.CurrencyType type = (Data.CurrencyType)controller.GetStoreItemLeftCostType(currentId); controller.SendStoreBuyC2S(type, currentId, currentCount); } }
private void OnUnitBuyClickCallBack(int count, Data.CurrencyType type) { controller.SendUnitBuy(count, unitId, type); }