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