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