示例#1
0
 void Start()
 {
     dataController  = FindObjectOfType <DataController>();
     trueOrFalseData = dataController.GetTrueOrFalseData();
     resistData      = dataController.GetResistData();
     quizUpData      = dataController.GetQuizUpData();
     quizUpData      = dataController.GetQuizUpData();
     pawerData       = dataController.GetPawerData();
 }
    // Start is called before the first frame update
    void Start()
    {
        dataController = FindObjectOfType <DataController>();
        pawerData      = dataController.GetPawerData();

        questionPool        = pawerData.questions;
        unansweredQuestions = questionPool.ToList <PawerQuestions>();

        isPawerActive = true;
        questionCount = 0;
        playerScore   = 0;
        healthCount   = 5;

        timeRemaining = pawerData.timeLimitInSeconds;
        UpdateTimeRemainingDisplay();

        SetCurrentQuestion();

        // Play Sound Sample
        // AudioManager.Instance.PlaySound("GameMusic");
    }