Ejemplo n.º 1
0
    public void changeToCurrentStation()
    {
        int station = PersistantSaver.getCurrentStation();

        PersistantSaver.playerData.stationStats[station].discovered = true;
        Debug.Log("Dreckiger Cheater! changing to " + station);
        SceneManager.LoadScene(StationData.stations[station].scene);
    }
Ejemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        startTime = DateTime.Now;
        lock1.SetActive(true);
        lock2.SetActive(true);

        buttons[0].SetActive(true);
        for (int i = 1; i < buttons.Length; i++)
        {
            buttons[i].SetActive(false);
        }

        foreach (GameObject po in popOvers)
        {
            po.SetActive(false);
        }

        int station = PersistantSaver.getCurrentStation();

        if (station == -1)
        {
            return;
        }
        for (int i = 0; i < texts.Length; i++)
        {
            if (i == 0)
            {
                texts[i].text = StationData.stations[station].tips.t1;
            }
            else if (i == 1)
            {
                texts[i].text = StationData.stations[station].tips.t2;
            }
            if (i == 2)
            {
                texts[i].text = StationData.stations[station].tips.t3;
            }
        }

        backButton.SetActive(false);
        overlay.SetActive(false);
    }
Ejemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
        station = PersistantSaver.getCurrentStation();

        PersistantSaver.playerData.stationStats[station].discovered = true;

        currentQuestion = PersistantSaver.playerData.currentQuestion + 1;
        if (currentQuestion > StationData.stations[station].quizQuestions.Length)
        {
            PersistantSaver.playerData.currentQuestion = -1;
            SceneManager.LoadScene(nextScene);
        }

        else
        {
            startTime  = System.DateTime.Now;
            timer.text = timeInSeconds + "";

            FillQuiz(StationData.stations[station].quizQuestions[currentQuestion]);
        }

        PersistantSaver.saveToHardDrive();
    }
Ejemplo n.º 4
0
 // Use this for initialization
 void Start()
 {
     stationNum = PersistantSaver.getCurrentStation();
     txt.text   = StationData.stations[stationNum].opinionQuestion;
 }