void Start() { Screen.orientation = ScreenOrientation.LandscapeLeft; variableObject = GameObject.FindGameObjectWithTag("VariableHandler"); if (variableObject) { VariableHandler variableHandler = variableObject.GetComponent <VariableHandler>(); endless = variableHandler.endlessMode; survival = variableHandler.survivalMode; } else { endless = true; } levelNumber = 1; if (!endless || survival) { livesController.SetUpLives(); } else if (endless) { GameObject livesText = GameObject.FindGameObjectWithTag("Lives"); livesText.SetActive(false); } Init(); }