void Start() { playerTransform = gameObject.transform; hud = (HUD)gameObject.GetComponent(typeof(HUD)); playerControl = (PlayerControl)gameObject.GetComponent(typeof(PlayerControl)); // fade = (FadeEffect)gameObject.GetComponent(typeof(FadeEffect)); minutesToBreath = PlayerPrefs.GetInt("minutesToBreath", 3); if(IsNeedShowTutorial()){ tutorial.enabled = true; DontShowTutorialNextTime(); } else { hud.InitTasks(); } if(PlayerPrefs.HasKey("benchMark")) { benchMark = true; } if(benchMark) { isGame.value = false; bmPointIndex = 0; bmMinFPS = 100; bmMaxFPS = 0; bmFPSCount = 0; } else { Load(); if(isFailed) { SpendLife(); } } Pause(false); }