Ejemplo n.º 1
0
 public void setObjectToRepair(RepairableObject newObject)
 {
     objectToRepair      = newObject;
     objectSprite.sprite = objectToRepair.images[0];
     text.text           = "<color=#18247C>" + objectToRepair.name + "</color>";
     currentLetter       = 0;
     count      = newObject.name.Length;
     blockInput = false;
     textTween.restart();
 }
Ejemplo n.º 2
0
 public void score(bool red)
 {
     if (red)
     {
         redPoints++;
         redScoreText.text = "" + redPoints;
         redPointTween.restart();
     }
     else
     {
         bluePoints++;
         blueScoreText.text = "" + bluePoints;
         bluePointTween.restart();
     }
 }