Exemplo n.º 1
0
        public void onLoadAchievementSuccess(List <NAchievementInfo> info)
        {
            string msg = "";

            for (int i = 0; i < info.Count; i++)
            {
                msg += info[i].id + ", " + info[i].unlocked + "\n";
            }
            PopupManager.ShowCustomPopup(popupRoot, "GamePotSamplePopup_BtnOne", "Achievement", msg);
        }
Exemplo n.º 2
0
        public void ClickLocalPush()
        {
            CustomizedPopup.PopupButtonInfo[] btn_info = new CustomizedPopup.PopupButtonInfo[2];

            btn_info[1].callback = () =>
            {
                DateTime current = DateTime.Now;
                current = current.AddSeconds(10);
                GamePot.sendLocalPush(current, "title", "content");
            };

            PopupManager.ShowCustomPopup(popupRoot, "GamePotSamplePopup_BtnTwo", "로컬 푸시", "확인 버튼을 누르면 10초 후 Push 메세지가 전송됩니다.", btn_info);
        }
Exemplo n.º 3
0
        public void ClickInAppButton()
        {
            CustomizedPopup.PopupButtonInfo[] btn_info = new CustomizedPopup.PopupButtonInfo[3];
            btn_info[0].callback = () =>
            {
                GamePot.purchase("purchase_001");
            };

            btn_info[1].callback = () =>
            {
                GamePot.purchase("purchase_002");
            };

            btn_info[2].callback = () =>
            {
                GamePot.purchase("purchase_003");
            };

            PopupManager.ShowCustomPopup(popupRoot, "GamePotSamplePopup_Purchase", "결제", "결제할 아이템을 선택해주세요", btn_info);
        }
Exemplo n.º 4
0
 public void onPushStatusFailure(NError error)
 {
     PopupManager.ShowCustomPopup(popupRoot, "GamePotSamplePopup_BtnOne", "Push Status", error.message);
 }
Exemplo n.º 5
0
 public void onDeleteLinkingFailure(NError error)
 {
     PopupManager.ShowCustomPopup(popupRoot, "GamePotSamplePopup_BtnOne", "연동", error.message);
     linkingStatusUpdate();
 }
Exemplo n.º 6
0
 public void onCreateLinkingCancel()
 {
     PopupManager.ShowCustomPopup(popupRoot, "GamePotSamplePopup_BtnOne", "연동", "연동이 취소 되었습니다.");
     linkingStatusUpdate();
 }
Exemplo n.º 7
0
 public void onPurchaseCancel()
 {
     PopupManager.ShowCustomPopup(popupRoot, "GamePotSamplePopup_BtnOne", "결제", "결제를 취소 하였습니다.");
 }
Exemplo n.º 8
0
 public void onPurchaseFailure(NError error)
 {
     PopupManager.ShowCustomPopup(popupRoot, "GamePotSamplePopup_BtnOne", "결제", error.message);
 }
Exemplo n.º 9
0
 public void onPurchaseSuccess(NPurchaseInfo purchaseInfo)
 {
     PopupManager.ShowCustomPopup(popupRoot, "GamePotSamplePopup_BtnOne", "결제", "결제 성공하였습니다.");
 }
Exemplo n.º 10
0
 public void ClickCouponButton()
 {
     PopupManager.ShowCustomPopup(popupRoot, "GamePotSamplePopup_Coupon", "쿠폰", "쿠폰번호");
 }
Exemplo n.º 11
0
 public void onCouponSuccess()
 {
     PopupManager.ShowCustomPopup(popupRoot, "GamePotSamplePopup_BtnOne", "쿠폰", "쿠폰 아이템이 지급되었습니다.");
 }
Exemplo n.º 12
0
 public void onLogoutFailure(NError error)
 {
     PopupManager.ShowCustomPopup(popupRoot, "GamePotSamplePopup_BtnOne", "로그아웃", error.message);
 }
Exemplo n.º 13
0
 public void onLogoutSuccess()
 {
     CustomizedPopup.PopupButtonInfo[] btn_info = new CustomizedPopup.PopupButtonInfo[1];
     btn_info[0].callback = () => { SceneManager.LoadSceneAsync("login"); };
     PopupManager.ShowCustomPopup(popupRoot, "GamePotSamplePopup_BtnOne", "로그아웃", "로그아웃 되었습니다.\n로그인 화면으로 이동 합니다.", btn_info);
 }
Exemplo n.º 14
0
 public void onDeleteMemberFailure(NError error)
 {
     PopupManager.ShowCustomPopup(popupRoot, "GamePotSamplePopup_BtnOne", "회원탈퇴", error.message);
 }
Exemplo n.º 15
0
 public void onReceiveScheme(string scheme)
 {
     PopupManager.ShowCustomPopup(popupRoot, "GamePotSamplePopup_BtnOne", "Scheme", scheme);
 }
Exemplo n.º 16
0
 public void onCouponFailure(NError error)
 {
     PopupManager.ShowCustomPopup(popupRoot, "GamePotSamplePopup_BtnOne", "쿠폰", error.message);
 }
Exemplo n.º 17
0
 public void onLoginCancel()
 {
     PopupManager.ShowCustomPopup(popupRoot, "GamePotSamplePopup_BtnOne", "로그인", "로그인이 취소 되었습니다.");
 }