public void Init(QuestionStage stage, int questionID, Decision dec) { gameObject.SetActive(false); Id = questionID; Stage = stage; InitAnswers(dec); }
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); }
protected virtual bool Verify(QuestionStage stage) => true;
public void Init(QuestionStage stage) { this.CurrentStage = stage; Debug.Assert(Verify(CurrentStage), "Unable to verify decision."); }