예제 #1
0
 public void DecrementTime(float amount)
 {
     barValue -= amount;
     if (barValue <= 0f)
     {
         barValue = 0f;
         // Death stuff here
         dead = true;
         gameOver.endGame();
     }
 }