void Start() { Instance = this; timer = MaxTime; NewQuestion(); }
void Start() { Screen.orientation = ScreenOrientation.Portrait; slot.SetActive(false); Instance = this; timer = MaxTime; defaultColor = GameCanvas.GetChild(1).GetChild(0).GetComponent <Image>().color; ReadXmlQuestion(); if (PlayerPrefs.GetString("Internet") == "Active") { currentLevel = PlayerPrefs.GetInt("Level"); currentPoints = PlayerPrefs.GetInt("Points"); currentTier = PlayerPrefs.GetInt("Tier"); } PlayerPrefs.SetString("Internet", "Inactive"); NewQuestion(); }