예제 #1
0
    /**마켓 결제용*/
    public void InitGoldShop(string title, int category, GetGoldShopEvent goldEvent)
    {
        mGoldList = goldEvent.Response.data;
        transform.FindChild("Top").FindChild("LblShop").GetComponent <UILabel>().text = title;
        mCategory = category;

        InitGoldList();

        if (Application.platform == RuntimePlatform.IPhonePlayer)
        {
            IOSMgr.InAppInit();
        }
        else if (Application.platform == RuntimePlatform.Android)
        {
                        #if (UNITY_ANDROID)
            if (UtilMgr.IsMLB())
            {
                GoogleIAB.init(Constants.GOOGLE_PUBLIC_KEY_MLB);
            }
            else
            {
                GoogleIAB.init(Constants.GOOGLE_PUBLIC_KEY_KBO);
            }
                        #endif
        }
    }
예제 #2
0
 public void OpenGold()
 {
     mGoldEvent = new GetGoldShopEvent(ReceivedGold);
     NetMgr.GetGoldShop(mGoldEvent);
 }
예제 #3
0
 public void OpenGold()
 {
     mGoldEvent = new GetGoldShopEvent(ReceivedGold);
     NetMgr.GetGoldShop(mGoldEvent);
 }
예제 #4
0
	/**마켓 결제용*/
	public void InitGoldShop(string title, int category, GetGoldShopEvent goldEvent){
		mGoldList = goldEvent.Response.data;
		transform.FindChild("Top").FindChild("LblShop").GetComponent<UILabel>().text = title;
		mCategory = category;

		InitGoldList();

		if(Application.platform == RuntimePlatform.IPhonePlayer){
			IOSMgr.InAppInit();
		} else if(Application.platform == RuntimePlatform.Android){
			#if(UNITY_ANDROID)
			if(UtilMgr.IsMLB())
				GoogleIAB.init(Constants.GOOGLE_PUBLIC_KEY_MLB);
			else
				GoogleIAB.init(Constants.GOOGLE_PUBLIC_KEY_KBO);
			#endif
		}
	}