Пример #1
0
 /// <summary>
 /// The method will spawn books after the first instruction is finished playing and when the game has 0 to less than 4 books.
 /// If the total number of correct books on both bins are equal or greater than 5, disable the grab of all books.
 /// </summary>
 void Update()
 {
     if ((books.Count >= 0 && books.Count < maxBookRespawn) && loadFirstInstruction == true)
     {
         if (gamePlayControl.totalCorrectlyRight >= gamePlayControl.maxCorrectRight && gamePlayControl.totalCorrectlyLeft >= gamePlayControl.maxCorrectLeft)
         {
             gamePlayControl.DisableGrabbableObject();
         }
         else
         {
             RandomizeContentBook();
         }
     }
 }