Exemplo n.º 1
0
    public override void Start()
    {
        base.Start();

        questions = new QuestionDictionary();
        questions.loadList("plant");
        print(questions.QuestionList.Count);
        _questionList = questions.QuestionList;
        _pObject = FnGlobal.GetPlayer<PlayerObject>();
        if (_pObject.type == PlayerObject.PlayerType.Player)
        {
            AnswerResult = Instantiate(AnswerResult) as GameObject;
            AnswerResult.GetComponent<CanvasGroup>().alpha = 0;
            AnswerResult.SetActive(false);
        }
        _victoryCanvas = Instantiate(_victoryCanvas) as GameObject;
        _victoryCanvas.SetActive(false);
    }
Exemplo n.º 2
0
    public override void Start()
    {
        base.Start();

        questions = new QuestionDictionary();
        questions.loadList("plant");
        print(questions.QuestionList.Count);
        _questionList = questions.QuestionList;
        _pObject      = FnGlobal.GetPlayer <PlayerObject>();
        if (_pObject.type == PlayerObject.PlayerType.Player)
        {
            AnswerResult = Instantiate(AnswerResult) as GameObject;
            AnswerResult.GetComponent <CanvasGroup>().alpha = 0;
            AnswerResult.SetActive(false);
        }
        _victoryCanvas = Instantiate(_victoryCanvas) as GameObject;
        _victoryCanvas.SetActive(false);
    }