Ejemplo n.º 1
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);
        }
Ejemplo n.º 2
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);
        }
Ejemplo n.º 3
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);
 }