Example #1
0
 public void Init()
 {
     _questions = QuestionRepoHandler.Questions(ScoreManager.Instance.Level);
     CreateAllQuestions();
     _enumerator    = 0;
     _answeredCount = 0;
     UpdateCurrent();
     _start = Time.time;
 }
Example #2
0
    private void Awake()
    {
        var json = Resources.Load("questions") as TextAsset;

        Debug.Assert(json != null, "json != null");
        _questions            = QuestionRepoHandler.InitQuestions(json.text).ToList();
        Continue.interactable = true;
        Close.interactable    = true;
    }