// Use this for initialization void Start() { LM = GameObject.FindGameObjectWithTag("LevelManager").GetComponent <LevelManager> (); PlayerCanProgress = false; EndGameActivated = false; RoundStarted = false; RoundEnded = false; SimulationStarted = false; SimulationEnded = false; TimeSpan span = TimeSpan.FromSeconds(RoundDuration_Seconds); RoundCounter.text = String.Format("{0:0}:{1:00}", span.Minutes, span.Seconds); BuildText.position = new Vector3(-400f, Screen.height / 2.0f, 0.0f); StartCoroutine(TickerTape(2, BuildText, 400)); RoundEndText.position = new Vector3(-350f, Screen.height / 2.0f, 0.0f); Score = 0; RoundScore.text = Score.ToString("D6"); // + Added by Karsten animations = GetComponent <LevelAnimations> (); sounds = GameObject.Find("AudioManager").GetComponent <Sounds> (); cameraScript = GameObject.Find("Main Camera").GetComponent <CameraScript> (); // // added by kirk sounds.PlayBuildMusic(); }
// Use this for initialization void Start() { levelAnimations = GameObject.Find("GameManager").GetComponent <LevelAnimations> (); }