Esempio n. 1
0
 void Start()
 {
     // Go zemame objektot
     answer = GetComponentInChildren <AnswerDialog> ();
     // Na pocetok e nevidliv
     answer.SetVisible(false);
 }
Esempio n. 2
0
    private void OnPushAnswer(int pushUser = 0) // 回答権を取得 (MultiPlay = 押した"User")
    {
        if (!acceptAnswer)
        {
            return;
        }
        else if (!IsMulti)
        {
            acceptAnswer = false;
        }

        Debug.Log("Press Answer. " + pushUser);
        if (IsMulti)
        {
            if (!acceptAnswerPlayer[pushUser])
            {
                return;
            }
            else
            {
                acceptAnswerPlayer[pushUser] = false;
            }
        }
        else
        {
            Debug.Log("Single");
        }

        piQuiz.stopWatch.Stop();
        updateAction -= GameRunning;


        AnswerDialog ans = this.gameObject.AddComponent <AnswerDialog>();

        ans.Set((x, y) => ChackAnswer(x, pushUser));
        if (IsMulti)
        {
            ans.SetText(PlayerNameOnMulti[pushUser] + " が回答中...");
        }
    }
 void Start()
 {
     answer = GetComponentInChildren <AnswerDialog> ();
     answer.SetVisible(false);
 }