コード例 #1
0
        private void FillBuckets()
        {
            // We need to aggregate answers before so we can later generate Questions
            int max = numberOfRounds * numberOfMaxAnswers;

            for (int i = 0; i < max; i++)
            {
                var pack = provider.GetNextQuestion();
                foreach (var answ in pack.GetCorrectAnswers())
                {
                    for (int j = 0; j < numberOfCategories; j++)
                    {
                        Debug.Log("##CATEGORY:" + answ.TextForLivingLetter);
                        if (categoryProvider.Compare(j, answ))
                        {
                            Debug.Log("##ADDED");
                            answersBuckets[j].Add(pack.GetQuestion());
                        }
                    }
                }
            }
        }