private void SighDialogComplete(AndroidDialogResult res) { if (res == AndroidDialogResult.YES) { GooglePlayConnection.Instance.Connect(GooglePlayManager.Instance.deviceGoogleAccountList[0]); } }
void OnSpanshotLoadDialogComplete(AndroidDialogResult res) { if (res == AndroidDialogResult.YES) { GP_SnapshotMeta s = GooglePlaySavedGamesManager.Instance.AvailableGameSaves[0]; GooglePlaySavedGamesManager.Instance.LoadSpanshotByName(s.Title); } }
private void OnRateUsActionComplete(AndroidDialogResult result) { androidMessage.ActionComplete -= OnRateUsActionComplete; if (result == AndroidDialogResult.CLOSED) { onSocialSharingIsPosted = true; Application.OpenURL("market://details?id=com.rovio.angrybirds"); } }
private void OnPromtGiftDialogClose(AndroidDialogResult res) { //parsing result switch (res) { case AndroidDialogResult.YES: GooglePlayManager.Instance.ShowRequestsAccepDialog(); break; } }
private void OnInvManageDialogComplete(AndroidDialogResult result) { switch (result) { case AndroidDialogResult.YES: GooglePlayRTM.instance.AcceptInvitation(inviteId); break; case AndroidDialogResult.NO: GooglePlayRTM.instance.DeclineInvitation(inviteId); break; } }
private void OnRatePopUpClosed(AndroidDialogResult result) { switch (result) { case AndroidDialogResult.REMIND: { GameManager.Instance.TotalTimes = 0; GameManager.Instance.SaveData(); } break; default: break; } }
private void OnInvDialogComplete(AndroidDialogResult result) { //parsing result switch (result) { case AndroidDialogResult.YES: GooglePlayRTM.instance.AcceptInviteToRoom(inviteId); break; case AndroidDialogResult.NO: GooglePlayRTM.instance.OpenInvitationInBoxUI(); break; } }
private void OnInvDialogComplete(AndroidDialogResult result) { //parsing result switch (result) { case AndroidDialogResult.YES: AndroidDialog dialog = AndroidDialog.Create("Manage Invite", "Would you like to accept this invite?", "Accept", "Decline"); dialog.ActionComplete += OnInvManageDialogComplete; break; case AndroidDialogResult.NO: GooglePlayRTM.instance.OpenInvitationInBoxUI(); break; } }
private void OnRatePopUpClose(AndroidDialogResult result) { switch (result) { case AndroidDialogResult.RATED: PlayerPrefs.SetInt(PlayerPrefHandler.keyRateUs, 1); buttonRateUs.gameObject.SetActive(false); int jmlCoinsNow = PlayerPrefs.GetInt(PlayerPrefHandler.keyCoin); jmlCoinsNow += 5; PlayerPrefs.SetInt(PlayerPrefHandler.keyCoin, jmlCoinsNow); GL1Connector.GetInstance().AddBalance(this.gameObject, "0", "5", "", "RATE"); /*int jmlTiketNow = PlayerPrefs.GetInt(PlayerPrefHandler.keyUserTiket); * jmlTiketNow += 100; * PlayerPrefs.SetInt(PlayerPrefHandler.keyUserTiket, jmlTiketNow);*/ if (CoinTimerHandler.instance) { CoinTimerHandler.instance.countCoin = jmlCoinsNow; } /*GameDataManager.instance.SendPlayResult( * GameDataManager.instance.gameID.ToString(),"100", * jmlCoinsNow.ToString(), * GameManager.EXP.ToString(), * GameManager.getLevelValue().ToString());*/ Gamestate_Gameplay gs = GameObject.FindGameObjectWithTag("Gamestate").GetComponent <Gamestate_Gameplay>(); if (gs) { gs.RefreshAllInfo(); gs.guiIngame.guiShop.RefreshInfo(); } dialogBox.Show("Info", "You got 5 GemuGold.", false, "", this.gameObject); break; case AndroidDialogResult.REMIND: break; case AndroidDialogResult.DECLINED: break; } //AN_PoupsProxy.showMessage("Result", result.ToString() + " button pressed"); }
private void OnDialogClose(AndroidDialogResult result) { //parsing result switch (result) { case AndroidDialogResult.YES: Debug.Log("Yes button pressed"); break; case AndroidDialogResult.NO: Debug.Log("No button pressed"); break; } AN_PoupsProxy.showMessage("Result", result.ToString() + " button pressed"); }
//-------------------------------------- // PUBLIC METHODS //-------------------------------------- //-------------------------------------- // GET/SET //-------------------------------------- //-------------------------------------- // EVENTS //-------------------------------------- private void OnRatePopUpClose(AndroidDialogResult result) { switch(result) { case AndroidDialogResult.RATED: Debug.Log ("RATED button pressed"); break; case AndroidDialogResult.REMIND: Debug.Log ("REMIND button pressed"); break; case AndroidDialogResult.DECLINED: Debug.Log ("DECLINED button pressed"); break; } AN_PoupsProxy.showMessage("Result", result.ToString() + " button pressed"); }
//-------------------------------------- // PUBLIC METHODS //-------------------------------------- //-------------------------------------- // GET/SET //-------------------------------------- //-------------------------------------- // EVENTS //-------------------------------------- private void OnRatePopUpClose(AndroidDialogResult result) { switch (result) { case AndroidDialogResult.RATED: Debug.Log("RATED button pressed"); break; case AndroidDialogResult.REMIND: Debug.Log("REMIND button pressed"); break; case AndroidDialogResult.DECLINED: Debug.Log("DECLINED button pressed"); break; } AN_PoupsProxy.showMessage("Result", result.ToString() + " button pressed"); }
private void OnInvManageDialogComplete(AndroidDialogResult result) { switch(result) { case AndroidDialogResult.YES: GooglePlayRTM.instance.AcceptInvitation(inviteId); break; case AndroidDialogResult.NO: GooglePlayRTM.instance.DeclineInvitation(inviteId); break; } }
private void OnInvDialogComplete(AndroidDialogResult result) { //parsing result switch(result) { case AndroidDialogResult.YES: AndroidDialog dialog = AndroidDialog.Create("Manage Invite", "Would you like to accept this invite?", "Accept", "Decline"); dialog.ActionComplete += OnInvManageDialogComplete; break; case AndroidDialogResult.NO: GooglePlayRTM.instance.OpenInvitationInBoxUI(); break; } }
private void OnDialogClose(AndroidDialogResult result) { //parsing result switch(result) { case AndroidDialogResult.YES: Debug.Log ("Yes button pressed"); break; case AndroidDialogResult.NO: Debug.Log ("No button pressed"); break; } AN_PoupsProxy.showMessage("Result", result.ToString() + " button pressed"); }
private void OnMessageClose(AndroidDialogResult result) { AN_PoupsProxy.showMessage("Result", "Message Closed"); }
/*private void OnPlayerDisconnected() { //SetSignButton(false); SA_StatusBar.text = "Player Disconnected"; playerLabel.text = "Player Disconnected"; } private void OnPlayerConnected() { //SetSignButton(true); SA_StatusBar.text = "Player Connected"; playerLabel.text = GooglePlayManager.instance.player.name + "(" + GooglePlayManager.instance.currentAccount + ")"; } */ /* private void ActionConnectionResultReceived(GooglePlayConnectionResult result) { if (result.IsSuccess) { Debug.Log("Connected!"); SetSignButton(true); } else { Debug.Log("Cnnection failed with code: " + result.code.ToString()); SetSignButton(false); } SA_StatusBar.text = "ConnectionResul: " + result.code.ToString(); } private void ActionAvailableDeviceAccountsLoaded(List<string> accounts) { string msg = "Device contains following google accounts:" + "\n"; foreach (string acc in GooglePlayManager.instance.deviceGoogleAccountList) { msg += acc + "\n"; } AndroidDialog dialog = AndroidDialog.Create("Accounts Loaded", msg, "Sign With Fitst one", "Do Nothing"); dialog.OnComplete += SighDialogComplete; } */ private void SighDialogComplete(AndroidDialogResult res) { if (res == AndroidDialogResult.YES) { GooglePlayConnection.instance.connect(GooglePlayManager.instance.deviceGoogleAccountList[0]); } }
private void OnRatePopUpClose(AndroidDialogResult result) { switch(result) { case AndroidDialogResult.RATED: AN_PoupsProxy.showMessage("Thanks", "for rate Zombie Cross"); break; case AndroidDialogResult.REMIND: AN_PoupsProxy.showMessage("Thanks", "soon know about us"); break; case AndroidDialogResult.DECLINED: AN_PoupsProxy.showMessage("Thanks", "remember, your opinion is important to us"); break; } //AN_PoupsProxy.showMessage("Result", result.ToString() + " button pressed"); }
private void OnPromtGiftDialogClose(AndroidDialogResult res) { //parsing result switch(res) { case AndroidDialogResult.YES: GooglePlayManager.instance.ShowRequestsAccepDialog(); break; } }
protected void DispatchAction(AndroidDialogResult res) { ActionComplete(res); }
// Use this for initialization /* public void RateDialogPopUp() { AndroidRateUsPopUp rate = AndroidRateUsPopUp.Create("Rate Us", rateText, rateUrl); rate.ActionComplete += OnRatePopUpClose; } private void ShowPreloader() { Invoke("HidePreloader", 2f); AndroidNativeUtility.ShowPreloader("Loading", "Wait 2 seconds please"); } private void HidePreloader() { AndroidNativeUtility.HidePreloader(); } private void OpenRatingPage() { AndroidNativeUtility.OpenAppRatingPage(rateUrl); } private void OnRatePopUpClose(AndroidDialogResult result) { switch(result) { case AndroidDialogResult.RATED: AN_PoupsProxy.showMessage("Thanks", "for rate Zombie Cross"); break; case AndroidDialogResult.REMIND: AN_PoupsProxy.showMessage("Thanks", "soon know about us"); break; case AndroidDialogResult.DECLINED: AN_PoupsProxy.showMessage("Thanks", "remember, your opinion is important to us"); break; } //AN_PoupsProxy.showMessage("Result", result.ToString() + " button pressed"); } private void OnDialogClose(AndroidDialogResult result) { //parsing result switch(result) { case AndroidDialogResult.YES: Debug.Log ("Yes button pressed"); break; case AndroidDialogResult.NO: Debug.Log ("No button pressed"); break; } AN_PoupsProxy.showMessage("Result", result.ToString() + " button pressed"); } */ private void OnMessageClose(AndroidDialogResult result) { AN_PoupsProxy.showMessage("Result", "Message Closed"); }
void OnSpanshotLoadDialogComplete (AndroidDialogResult res) { if(res == AndroidDialogResult.YES) { GP_SnapshotMeta s = GooglePlaySavedGamesManager.instance.AvailableGameSaves[0]; GooglePlaySavedGamesManager.instance.LoadSpanshotByName(s.Title); } }
private void OnDialogClose(AndroidDialogResult result) { //parsing result switch (result) { case AndroidDialogResult.YES: Debug.Log("NA_popup:::Yes button pressed"); OnSecondChance(); break; case AndroidDialogResult.NO: Debug.Log("NA_POPUP:::No button pressed"); StartCoroutine(NullifyProgress()); break; } }