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);
            }
        }
Beispiel #2
0
 private void OnUnitBuyClickCallBack(int count, Data.CurrencyType type)
 {
     controller.SendUnitBuy(count, unitId, type);
 }