/// <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(); } } }