public ContestQuestion(IContestData contest, string question, string[] answers, bool[] solutions, IContestSentence[] nexts = null) { this.question = question; this.answers = answers; this.solutions = solutions; this.nexts = nexts; this.contest = contest; }
public ContestQuestion(IContestData contest, string question, string[] answers, int correct, IContestSentence[] nexts = null) { this.question = question; this.answers = answers; this.solutions = new bool[3]; for (int i = 0; i < 3; i++) { solutions[i] = correct == i; } this.nexts = nexts; this.contest = contest; }
public void StartContest(IContestData contest, GameObject guy, Quaternion rotation, Vector3 scale, Vector3 offset) { onContest = true; currentContest = contest; currentContest.Restart(); currentSentence = contest.Begin(); lastAnswer = -1; contestGuy = Instantiate(guy, guyPosition.position + offset, rotation); Destroy(contestGuy.GetComponent <ContestInitiator>()); contestGuy.transform.localScale = scale; realGuy = guy; currentSentence.ShowIn(this); }
public void StartContest(IContestData contest, GameObject guy) { StartContest(contest, guy, Quaternion.identity, Vector3.one, Vector3.zero); }