示例#1
0
    /// <summary>
    /// Checking whether the level is already passed and whether there are enough fish to skip the level.
    /// </summary>
    public static void PressSkip()
    {
        Coroutines coroutines = GameObject.FindObjectOfType(typeof(Coroutines)) as Coroutines;

        if (SaveInGame.SavesCountHelp < 3)
        {
            coroutines.InvokeHideDialogue();

            if (GlobalVariables.isRussianLanguage == true)
            {
                GlobalSceneObjects.dialogue.transform.Find("Text").GetComponent <Text>().text = "Как только у тебя будет 3 рыбки, сразу поговорим! Хорошо?";
            }
            else
            {
                GlobalSceneObjects.dialogue.transform.Find("Text").GetComponent <Text>().text = "As soon as you have 3 fish, we'll talk right away! Good?";
            }
            GlobalSceneObjects.helpButton.transform.Find("CountHelp").Find("PictureHelp").GetComponent <Animator>().Play("PictureHelp");
        }
        else
        {
            if (GlobalSaves.saveInGame[GlobalVariables.activeNameLevel - 7].isRateLevelsCheck[SaveInGame.numberLvlClick] == false &&
                GlobalSaves.saveInGame[GlobalVariables.activeNameLevel - 7].isSkipRateLevelsCheck[SaveInGame.numberLvlClick] == false)
            {
                GlobalSceneObjects.tableSkip.gameObject.SetActive(true);
            }
            else
            {
                coroutines.PassedLevel();
            }
        }
    }
示例#2
0
    /// <summary>
    /// The player decided to answer this question later.
    /// </summary>
    public static void PressLater()
    {
        Coroutines coroutines = GameObject.FindObjectOfType(typeof(Coroutines)) as Coroutines;

        coroutines.InvokeHideDialogue();

        GlobalVariables.stateForAnimation = (int)GlobalVariables.NameAnimation.TableRate;
        GlobalSceneObjects.tableRate.GetComponent <Animator>().SetTrigger("HideTrigger");
        SaveInGame.isPressRateGame = 2;

        if (GlobalVariables.isRussianLanguage == true)
        {
            GlobalSceneObjects.dialogue.transform.Find("Text").GetComponent <Text>().text = "Лааадно! Потом ещё разочек спрошу!";
        }
        else
        {
            GlobalSceneObjects.dialogue.transform.Find("Text").GetComponent <Text>().text = "Okay! Then I'll ask you one more time!";
        }
        SaveData.Save();
    }
示例#3
0
    /// <summary>
    /// The player doesn't want to rate the game.
    /// </summary>
    public static void PressNo()
    {
        Coroutines coroutines = GameObject.FindObjectOfType(typeof(Coroutines)) as Coroutines;

        coroutines.InvokeHideDialogue();

        GlobalVariables.stateForAnimation = (int)GlobalVariables.NameAnimation.TableRate;

        GlobalSceneObjects.tableRate.GetComponent <Animator>().SetTrigger("HideTrigger");
        SaveInGame.isPressRateGame = 3;

        if (GlobalVariables.isRussianLanguage == true)
        {
            GlobalSceneObjects.dialogue.transform.Find("Text").GetComponent <Text>().text = "Так уж и быть, больше не буду тебя тревожить этим вопросом!";
        }
        else
        {
            GlobalSceneObjects.dialogue.transform.Find("Text").GetComponent <Text>().text = "Well, I won't bother you with this question anymore!";
        }

        SaveData.Save();
    }
示例#4
0
    /// <summary>
    /// The player agreed to rate the game.
    /// </summary>
    public static void PressYes()
    {
        Coroutines coroutines = GameObject.FindObjectOfType(typeof(Coroutines)) as Coroutines;

        coroutines.InvokeHideDialogue();

        GlobalVariables.stateForAnimation = (int)GlobalVariables.NameAnimation.TableRate;
        GlobalSceneObjects.tableRate.GetComponent <Animator>().SetTrigger("HideTrigger");
        SaveInGame.isPressRateGame = 1;

        if (GlobalVariables.isRussianLanguage == true)
        {
            GlobalSceneObjects.dialogue.transform.Find("Text").GetComponent <Text>().text = "Спасибо большое за отзыв!";
        }
        else
        {
            GlobalSceneObjects.dialogue.transform.Find("Text").GetComponent <Text>().text = "Thank you very much for your feedback!";
        }

        SaveData.Save();
        Application.OpenURL("https://play.google.com/store/apps/details?id=com.infinityuniversestudio.logicbooster");
    }