public void LoadLevel(string name) { //Debug.Log ("Level load requested for: " + name); Application.LoadLevel(name); textControl = GameObject.FindObjectOfType<TextController>(); textControl.PrintLivesLeft(); textControl.PrintScore(); Bricks.breakableCount=0; }