// Use this for initialization public void StartLevel() { Debug.Log("PlanePilot started with "+ this.gameObject.name); Application.targetFrameRate = 60; gui = GameObject.FindGameObjectWithTag("GUISystem").GetComponent<GUISystem>(); gui.setMaxHealths(healths); if(SharedVars.Inst.lastPlayedLevel == "firstLevel") { targetsLeft.text = "Goats left: "+ goatsLeft; } else if(SharedVars.Inst.lastPlayedLevel == "secondLevel") { targetsLeft.text = "Supplies picked: "+ goatsLeft; } //Time.timeScale = 0f; }