示例#1
0
 // Update is called once per frame
 void Update()
 {
     if (shouldScroll && repairMeter.sizeDelta.x > 0)
     {
         repairMeter.sizeDelta = new Vector2(repairMeter.sizeDelta.x - 0.9f, repairMeter.sizeDelta.y);
         if (repairMeter.sizeDelta.x <= 0)
         {
             motorcycle.BrokenDown();
         }
     }
 }