Exemplo n.º 1
0
 private void Update()
 {
     if (braces.Count > 0 && Time.time > timer)
     {
         timer += boxPointsInterval;
         if (storedObjects.Count != 0 && score != null)
         {
             int calcBoxPoints = storedObjects.Count * storedBoxPoints;
             DisplayFloatText(calcBoxPoints);
             score.AddShelfScore(calcBoxPoints);
         }
     }
 }