Пример #1
0
 public override void StartState(AudienceMemberController theAudienceMember)
 {
     if (!started)
     {
         theAudienceMember.StartCoroutine(StartAnim(theAudienceMember));
         started = true;
     }
 }
Пример #2
0
    public override void StartState(AudienceMemberController theAudienceMember)
    {
        // Getting the question to show
        if (theAudienceMember.useGlobalQuestionSet)
        {
            theAudienceMember.theQuestion = QuestionsManager.instance.GetQuestion();
        }
        else
        {
            int pickedQuestion = Random.Range(0, theAudienceMember.possibleStartQuestions.Length);
            theAudienceMember.theQuestion = theAudienceMember.possibleStartQuestions[pickedQuestion];
        }

        // Showing Question To Player
        if (QuestionUIManager.instance.OpenUI(theAudienceMember))
        {
            theAudienceMember.StartCoroutine(this.StartAnim(theAudienceMember));
        }
        else
        {
            theAudienceMember.ChangeState(AudienceStates.AUDIENCE_IDLE, false);
        }
    }
Пример #3
0
 public override void StartState(AudienceMemberController theAudienceMember)
 {
     theAudienceMember.StartCoroutine(DelayStart(theAudienceMember));
 }