Beispiel #1
0
    private List <GameObject> ansButGameObjects = new List <GameObject>();//gonna check this list


    void Start()
    {
        dataControl   = FindObjectOfType <DataController2> (); //high degree of confidence
        currRData     = dataControl.GetCurrentRData();
        qPool         = currRData.questions;                   //store questions gonna be asked
        remainingTime = currRData.TimerSeconds;
        UpdateRemainingTime();

        userScore2 = 0;
        qIndex     = 0;

        DisplayQuestions();
        roundIsActive = true;

        showHighScore2.text = PlayerPrefs.GetInt("highScore2", 0).ToString();
    }
Beispiel #2
0
    // Use this for initialization
    void Start()
    {
        dataController   = FindObjectOfType <DataController2> ();
        currentRoundData = dataController.GetCurrentRoundData();
        instructionPool  = currentRoundData.instructions;
        timeRemaining    = currentRoundData.timeLimitInSeconds;

        UpdateTimeRemainingDisplay();

        playerScore      = 0;
        instructionIndex = 0;

        ShowInstruction();
        isRoundActive = true;

        StartCoroutine(TextAppear());
    }