Exemple #1
0
    public void InitItemShop(string title, int category, GetItemShopGoldEvent goldEvent)
    {
        mItemList = goldEvent.Response.data;
        transform.FindChild("Top").FindChild("LblShop").GetComponent <UILabel>().text = title;
        mCategory = category;
        UtilMgr.ClearList(transform.FindChild("Body").FindChild("Scroll View"));

        if (category == GOLD)
        {
            /**서버 요청에 의해 마켓 결제용 api가 따로 존재해서 지금은 사용하지 않음*/
            InitGoldList();
        }
        else if (category == TICKET)
        {
            InitTicketList();
        }
        else if (category == CARD)
        {
            InitCardList();
        }
        else
        {
            InitSkillList();
        }
    }
 public void OnClick()
 {
     if(name.Equals("BtnCardShop")){
         mGoldEvent = new GetItemShopGoldEvent(ReceivedCardShop);
         NetMgr.GetItemShopList(Shop.CARD, mGoldEvent);
     } else{
         transform.root.FindChild("SkillList").GetComponent<SkillList>().Init();
     }
 }
 public void OnClick()
 {
     if (name.Equals("BtnCardShop"))
     {
         mGoldEvent = new GetItemShopGoldEvent(ReceivedCardShop);
         NetMgr.GetItemShopList(Shop.CARD, mGoldEvent);
     }
     else
     {
         transform.root.FindChild("SkillList").GetComponent <SkillList>().Init();
     }
 }
 public void OpenTickets()
 {
     mItemEvent = new GetItemShopGoldEvent(ReceivedTicketShop);
     NetMgr.GetItemShopList(Shop.TICKET, mItemEvent);
 }
 public void OpenTickets()
 {
     mItemEvent = new GetItemShopGoldEvent(ReceivedTicketShop);
     NetMgr.GetItemShopList(Shop.TICKET, mItemEvent);
 }
Exemple #6
0
	public void InitItemShop(string title, int category, GetItemShopGoldEvent goldEvent){
		mItemList = goldEvent.Response.data;
		transform.FindChild("Top").FindChild("LblShop").GetComponent<UILabel>().text = title;
		mCategory = category;
		UtilMgr.ClearList(transform.FindChild("Body").FindChild("Scroll View"));

		if(category == GOLD){
			/**서버 요청에 의해 마켓 결제용 api가 따로 존재해서 지금은 사용하지 않음*/
			InitGoldList();
		} else if(category == TICKET){
			InitTicketList();
		} else if(category == CARD){
			InitCardList();
		} else{
			InitSkillList();
		}

	}
Exemple #7
0
 public void OnClick()
 {
     mGoldEvent = new GetItemShopGoldEvent(ReceivedSkillShop);
     NetMgr.GetItemShopList(Shop.SKILL, mGoldEvent);
 }