/// <summary> /// The player confirmed that he wants to skip the level. /// </summary> public static void PressYes() { Coroutines coroutines = GameObject.FindObjectOfType(typeof(Coroutines)) as Coroutines; GlobalVariables.stateForAnimation = (int)GlobalVariables.NameAnimation.TableSkip; SaveInGame.SavesCountHelp = SaveInGame.SavesCountHelp - 3; GlobalSaves.sv.SavesCountHelp = SaveInGame.SavesCountHelp; if (GlobalVariables.activeNameLevel == (int)GlobalVariables.NameAnimation.LightTests) { GlobalSaves.saveInGame[0].isSkipRateLevelsCheck[SaveInGame.numberLvlClick] = true; } if (GlobalVariables.activeNameLevel == (int)GlobalVariables.NameAnimation.BestPractices) { GlobalSaves.saveInGame[1].isSkipRateLevelsCheck[SaveInGame.numberLvlClick] = true; } if (GlobalVariables.activeNameLevel == (int)GlobalVariables.NameAnimation.ScientistsNotes) { GlobalSaves.saveInGame[2].isSkipRateLevelsCheck[SaveInGame.numberLvlClick] = true; } if (GlobalVariables.activeNameLevel == (int)GlobalVariables.NameAnimation.ExperimentalProcess) { GlobalSaves.saveInGame[3].isSkipRateLevelsCheck[SaveInGame.numberLvlClick] = true; } if (GlobalVariables.activeNameLevel == (int)GlobalVariables.NameAnimation.AcademicDegree) { GlobalSaves.saveInGame[4].isSkipRateLevelsCheck[SaveInGame.numberLvlClick] = true; } if (GlobalVariables.activeNameLevel == (int)GlobalVariables.NameAnimation.SimpleLever) { GlobalSaves.saveInGame[5].isSkipRateLevelsCheck[SaveInGame.numberLvlClick] = true; } if (GlobalVariables.activeNameLevel == (int)GlobalVariables.NameAnimation.ElementaryLaws) { GlobalSaves.saveInGame[6].isSkipRateLevelsCheck[SaveInGame.numberLvlClick] = true; } if (GlobalVariables.activeNameLevel == (int)GlobalVariables.NameAnimation.Mechanics) { GlobalSaves.saveInGame[7].isSkipRateLevelsCheck[SaveInGame.numberLvlClick] = true; } if (GlobalVariables.activeNameLevel == (int)GlobalVariables.NameAnimation.LatestDevelopments) { GlobalSaves.saveInGame[8].isSkipRateLevelsCheck[SaveInGame.numberLvlClick] = true; } SaveData.Save(); CountImageHelp.Show(); GlobalSceneObjects.tableSkip.GetComponent <Animator>().SetTrigger("HideTrigger"); coroutines.PassedAndShowAchievments1(); GlobalVariables.isSkipLevel = true; Victory.Invoke(); }