Exemple #1
0
 void createEmptyBox()
 {
     Answer[] answers = GetTxt.Instance.getAnswers();
     for (int i = 0; i < answers.Length; i++)
     {
         string[]    chars = answers[i].getChars();
         MapPosition mapPositionEmptyBox = MapPosition.getMapEmptyBoxPosition(chars.Length, i);
         if (mapPositionEmptyBox != null)
         {
             List <Box> emptyBoxes = new List <Box>();
             for (int j = 0; j < chars.Length; j++)
             {
                 emptyBoxes.Add(CreateBox("", mapPositionEmptyBox.positions[j]));
             }
             GameManager.Instance.lineEmptyBoxAnswers.Add(new LineEmptyBoxAnswer(i, emptyBoxes));
         }
     }
 }