예제 #1
0
 void RoundStart()
 {
     roundInfoText.color = Color.black;
     currentTime         = 0;
     currentMarble       = 0;
     countdownText.text  = (startTime - (int)currentTime).ToString();
     roundInfoText.text  = "Round Starts: ";
     roundNum++;
     marblesInRound++;
     livesText.gameObject.SetActive(false);
     livesText.text = "Lives: " + lives.ToString();
     boxContainer.PopulateBox(marblesInRound);
     marbles.Clear();
     for (int i = 0; i < boxContainer.marbles.Count; i++)
     {
         marbles.Add(boxContainer.marbles[i]);
     }
     phase = PHASE.WAIT;
     // tell the rats to go to for marbles...reachedbox = false
 }