Exemplo n.º 1
0
    public void MallItemBuyEvent(Mall_Tab tabIndex, MallItemData mallItem)
    {
        int tab = (int)tabIndex;

        if (!_items.ContainsKey(tab))
        {
            return;
        }
        BuyItems(mallItem.GetID(), 1);
    }
Exemplo n.º 2
0
 public void SetInfo(MallItemData data, int index)
 {
     mLbText.text    = data.GetName();
     mLbPice.text    = data.GetPrice().ToString() + " [C8C800]PP";
     mSpr.spriteName = data.GetSprName();
     mSpr.MakePixelPerfect();
     mIndex            = index;
     mCollider.enabled = true;
     mData             = data;
     mLbCount.text     = mData.GetCount().ToString();
 }
Exemplo n.º 3
0
 public void ClearInfo()
 {
     mSpr.spriteName      = "Null";
     mLbPice.text         = "";
     mLbText.text         = "";
     mCollider.enabled    = false;
     mCheckBox.isChecked  = false;
     mLbDisCount.text     = "";
     mSprDiscount.enabled = false;
     mLbCount.text        = "";
     mData = null;
 }
Exemplo n.º 4
0
    public void MallItemExportEvent(Mall_Tab tabIndex, MallItemData mallItem)
    {
        if (mallItem == null)
        {
            Debug.LogError("mallItem is null");
            return;
        }
//		int id = mallItem.GetID ();
        if (AccountItems.self.CheckCreateItems(mallItem.GetItemType(), 1))
        {
            CreateAccountItems(mallItem.GetItemType(), 1);
        }
    }