예제 #1
0
    private void OnRatePopUpClose(MNDialogResult result)
    {
        switch (result)
        {
        case MNDialogResult.RATED:
            if (Debug.isDebugBuild)
            {
                Debug.Log("Rate Option picked");
            }
            SaveRate(-1);
            break;

        case MNDialogResult.REMIND:
            if (Debug.isDebugBuild)
            {
                Debug.Log("Much much later Option picked");
            }
            SaveRate(6);
            break;

        case MNDialogResult.DECLINED:
            if (Debug.isDebugBuild)
            {
                Debug.Log("Later Option picked");
            }
            SaveRate(3);
            break;
        }
    }
예제 #2
0
    public void OnAdsPopUpDialog(MNDialogResult result)
    {
        switch (result)
        {
        case MNDialogResult.RATED:
            ThirdManager.instance.BuyProduct();
            break;

        case MNDialogResult.REMIND:
            ThirdManager.instance.ShowAd();
//			gameObject.SetActive (false);
            break;

        case MNDialogResult.DECLINED:
            if (delay30.GetComponent <Delay30> ().created)
            {
                delay30.SetActive(true);
                delay30.GetComponent <Delay30> ().resume();
            }
            else
            {
                delay30.SetActive(true);
            }
            break;
        }
    }
예제 #3
0
 private void OnSaveDialogClose(MNDialogResult result)
 {
     //parsing result
     switch(result) {
     case MNDialogResult.YES:
         break;
     case MNDialogResult.NO:
         break;
     default:
         break;
     }
 }
예제 #4
0
    private void OnPopUpClose(MNDialogResult result)
    {
        switch (result)
        {
        case MNDialogResult.YES:
            Application.OpenURL(_storeUrl);
            break;

        case MNDialogResult.NO:
            SaveInvalidVersionUpCheck(true);
            break;
        }
    }
예제 #5
0
파일: GamePlay.cs 프로젝트: PeyTy/InVitro
    private void OnDialogClose(MNDialogResult result)
    {
        switch (result)
        {
        case MNDialogResult.YES:
            Application.Quit();
            break;

        case MNDialogResult.NO:
            Debug.Log("Escape cancelled");
            break;
        }
    }
예제 #6
0
파일: Libero.cs 프로젝트: mutatis/ElderChef
 private void OnDialogClose(MNDialogResult result)
 {
     //parsing result
     switch (result)
     {
         case MNDialogResult.YES:
             Application.OpenURL("https://unionassets.com/mobile-native-popups/showing-dialog-pop-up-58");
             break;
         case MNDialogResult.NO:
             Debug.Log("No button pressed");
             break;
     }
 }
예제 #7
0
    private void OnDialogClose(MNDialogResult result)
    {
        switch (result)
        {
        case MNDialogResult.YES:
            Debug.Log("Yes button pressed");
            break;

        case MNDialogResult.NO:
            Debug.Log("No button pressed");
            break;
        }
    }
예제 #8
0
 private static void OnSaveDialogCloseQuitGame(MNDialogResult result)
 {
     //parsing result
     switch(result) {
     case MNDialogResult.YES:
         Application.Quit ();
         //System.Diagnostics.Process.GetCurrentProcess().Kill();
         break;
     case MNDialogResult.NO:
         break;
     default:
         break;
     }
 }
예제 #9
0
    private void OnDialogClose(MNDialogResult result)
    {
        //parsing result
        switch(result) {
        case MNDialogResult.YES:
            Debug.Log ("Yes button pressed");
            break;
        case MNDialogResult.NO:
            Debug.Log ("No button pressed");
            break;

        }

        new MobileNativeMessage("Result", result.ToString() + " button pressed");
    }
예제 #10
0
    private void OnDialogClose(MNDialogResult result)
    {
        //parsing result
        switch (result)
        {
        case MNDialogResult.YES:
            Debug.Log("Yes button pressed");
            break;

        case MNDialogResult.NO:
            Debug.Log("No button pressed");
            break;
        }

        new MobileNativeMessage("Result", result.ToString() + " button pressed");
    }
예제 #11
0
 private void OnRatePopUpClose(MNDialogResult result)
 {
     //parsing result
     switch (result)
     {
         case MNDialogResult.RATED:
             PlayerPrefs.SetInt("Rate", 1);
             break;
         case MNDialogResult.REMIND:
             Debug.Log("Remind Option picked");
             break;
         case MNDialogResult.DECLINED:
             Debug.Log("Declined Option picked");
             break;
     }
 }
예제 #12
0
    private void OnDialogClose(MNDialogResult result)
    {
        //parsing result
        switch (result)
        {
        case MNDialogResult.YES:
            Debug.Log("Yes button pressed");
            Application.OpenURL(this.ActionURL);

            break;

        case MNDialogResult.NO:
            Debug.Log("No button pressed");
            break;
        }
    }
예제 #13
0
    private void OnAdsPopUpClose(MNDialogResult result)
    {
        switch (result)
        {
        case MNDialogResult.RATED:
            ThirdManager.instance.BuyProduct();
            break;

        case MNDialogResult.REMIND:
            ThirdManager.instance.ShowRewardedVideo();
            AudioController.Stop("Menu");
            break;

        case MNDialogResult.DECLINED:
            delay30.SetActive(true);
            break;
        }
    }
예제 #14
0
	private void OnRatePopUpClose(MNDialogResult result) {

		//parsing result
		switch(result) {
		case MNDialogResult.RATED:
			Debug.Log ("Rate Option pickied");
			break;
		case MNDialogResult.REMIND:
			Debug.Log ("Remind Option pickied");
			break;
		case MNDialogResult.DECLINED:
			Debug.Log ("Declined Option pickied");
			break;
		}

		new MobileNativeMessage("Result", result.ToString() + " button pressed");

	}
예제 #15
0
    public void OnAdsPopUpClose(MNDialogResult result)
    {
        switch (result)
        {
        case MNDialogResult.RATED:
            ThirdManager.instance.BuyProduct();
            break;

        case MNDialogResult.REMIND:
            ThirdManager.instance.ShowRewardedVideo();
            AudioController.Stop("Menu");
            gameObject.SetActive(false);
            break;

        case MNDialogResult.DECLINED:
            gameObject.SetActive(true);
            gameObject.GetComponent <Delay30>().resume();
            break;
        }
    }
예제 #16
0
    private void OnRatePopUpClose(MNDialogResult result)
    {
        //parsing result
        switch (result)
        {
        case MNDialogResult.RATED:
            Debug.Log("Rate Option pickied");
            break;

        case MNDialogResult.REMIND:
            Debug.Log("Remind Option pickied");
            break;

        case MNDialogResult.DECLINED:
            Debug.Log("Declined Option pickied");
            break;
        }

        new MobileNativeMessage("Result", result.ToString() + " button pressed");
    }
예제 #17
0
    private void OnRatePopUpClose(MNDialogResult result)
    {
        GameData.playCnt = PlayerPrefs.GetInt("playCnt", 0);
        switch (result)
        {
        case MNDialogResult.RATED:
            Application.OpenURL("market://details?id=com.peakrainbow.missionday");
            GameData.playCnt = 1;
            break;

        case MNDialogResult.REMIND:
            GameData.playCnt = 1;
            break;

        case MNDialogResult.DECLINED:
            Debug.Log("Declined Option pickied");
            GameData.playCnt = -10000;
            PlayerPrefs.SetInt("playCnt", GameData.playCnt);;
            break;
        }
    }
예제 #18
0
    public void OnAdsPopUpClose(MNDialogResult result)
    {
        switch (result)
        {
        case MNDialogResult.RATED:
            ThirdManager.instance.BuyProduct();
            break;

        case MNDialogResult.REMIND:
            ThirdManager.instance.ShowAd();
            //	ThirdManager.instance.gameObject.GetComponents<AudioSource> ()[0].Stop ();

            gameObject.SetActive(false);
            break;

        case MNDialogResult.DECLINED:
            gameObject.SetActive(true);
            gameObject.GetComponent <Delay30>().resume();
            break;
        }
    }
예제 #19
0
	//BuyAvatarDialog PopUp: result checker
	private void OnBuyAvatarDialogClose(MNDialogResult result){
		switch (result) {
		case MNDialogResult.YES:
			BuyAvatar();
			break;
		case MNDialogResult.NO:
			break;
		}
	}
예제 #20
0
	//QuitGame PopUp: result checker
	private void OnQuitGameDialogClose(MNDialogResult result){
		switch (result) {
		case MNDialogResult.YES:
			QuitGame ();
			break;
		case MNDialogResult.NO:
			break;
		}
	}
예제 #21
0
	//Home PopUp: result checker
	private void OnhomeDialogClose(MNDialogResult result){
		switch (result) {
		case MNDialogResult.YES:
			MainMenu();
			break;
		case MNDialogResult.NO:
			break;
		}
	}
 private void OnCompleteListener(MNDialogResult res)
 {
     OnComplete();
 }
예제 #23
0
	private void OnCompleteListener(MNDialogResult res) {
		OnComplete(res);
	}
예제 #24
0
 private void OnSaveDialogClose1(MNDialogResult result)
 {
     //parsing result
     switch(result) {
     case MNDialogResult.YES:
         new MobileNativeMessage("Saved", "your changes have been saved successfully");
         //SaveData();
         MainController.SwitchScene(MainController.previousScene);
         break;
     case MNDialogResult.NO:
         MainController.SwitchScene(MainController.previousScene);
         break;
     default:
         break;
     }
 }