Esempio n. 1
0
    void Start()
    {
        Instance = this;
        timer    = MaxTime;

        NewQuestion();
    }
Esempio n. 2
0
    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();
    }