예제 #1
0
        public void Init(QuestionStage stage, int questionID, Decision dec)
        {
            gameObject.SetActive(false);

            Id    = questionID;
            Stage = stage;

            InitAnswers(dec);
        }
예제 #2
0
        protected override bool Verify(QuestionStage stage)
        {
            // verifies the number of replacements equals to number of all potential answers
            if (stage.Questions.Length != Replacements.Count)
            {
                return(false);
            }
            for (int i = 0; i < stage.Questions.Length; i++)
            {
                if (stage.Questions[i].Answers.Length != Replacements[i].Count)
                {
                    return(false);
                }
            }

            return(true);
        }
예제 #3
0
 protected virtual bool Verify(QuestionStage stage) => true;
예제 #4
0
        public void Init(QuestionStage stage)
        {
            this.CurrentStage = stage;

            Debug.Assert(Verify(CurrentStage), "Unable to verify decision.");
        }