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);
        }
        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);
        }
        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);
        }
 public void onPushStatusFailure(NError error)
 {
     PopupManager.ShowCustomPopup(popupRoot, "GamePotSamplePopup_BtnOne", "Push Status", error.message);
 }
 public void onDeleteLinkingFailure(NError error)
 {
     PopupManager.ShowCustomPopup(popupRoot, "GamePotSamplePopup_BtnOne", "연동", error.message);
     linkingStatusUpdate();
 }
 public void onCreateLinkingCancel()
 {
     PopupManager.ShowCustomPopup(popupRoot, "GamePotSamplePopup_BtnOne", "연동", "연동이 취소 되었습니다.");
     linkingStatusUpdate();
 }
 public void onPurchaseCancel()
 {
     PopupManager.ShowCustomPopup(popupRoot, "GamePotSamplePopup_BtnOne", "결제", "결제를 취소 하였습니다.");
 }
 public void onPurchaseFailure(NError error)
 {
     PopupManager.ShowCustomPopup(popupRoot, "GamePotSamplePopup_BtnOne", "결제", error.message);
 }
 public void onPurchaseSuccess(NPurchaseInfo purchaseInfo)
 {
     PopupManager.ShowCustomPopup(popupRoot, "GamePotSamplePopup_BtnOne", "결제", "결제 성공하였습니다.");
 }
Beispiel #10
0
 public void ClickCouponButton()
 {
     PopupManager.ShowCustomPopup(popupRoot, "GamePotSamplePopup_Coupon", "쿠폰", "쿠폰번호");
 }
Beispiel #11
0
 public void onCouponSuccess()
 {
     PopupManager.ShowCustomPopup(popupRoot, "GamePotSamplePopup_BtnOne", "쿠폰", "쿠폰 아이템이 지급되었습니다.");
 }
Beispiel #12
0
 public void onLogoutFailure(NError error)
 {
     PopupManager.ShowCustomPopup(popupRoot, "GamePotSamplePopup_BtnOne", "로그아웃", error.message);
 }
Beispiel #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);
 }
Beispiel #14
0
 public void onDeleteMemberFailure(NError error)
 {
     PopupManager.ShowCustomPopup(popupRoot, "GamePotSamplePopup_BtnOne", "회원탈퇴", error.message);
 }
Beispiel #15
0
 public void onReceiveScheme(string scheme)
 {
     PopupManager.ShowCustomPopup(popupRoot, "GamePotSamplePopup_BtnOne", "Scheme", scheme);
 }
Beispiel #16
0
 public void onCouponFailure(NError error)
 {
     PopupManager.ShowCustomPopup(popupRoot, "GamePotSamplePopup_BtnOne", "쿠폰", error.message);
 }
 public void onLoginCancel()
 {
     PopupManager.ShowCustomPopup(popupRoot, "GamePotSamplePopup_BtnOne", "로그인", "로그인이 취소 되었습니다.");
 }