示例#1
0
 public void DrinkWater(int water_level)
 {
     if (drunkLevel <= 0)   // If somehow already at max drunk
     {
         return;
     }
     drunkLevel -= water_level;
     if (drunkLevel < startingDrunkLevel)   // Point at which to show a new drunken state
     {
         hero.ExitTheDrunk();
         StopDrunkCam();
     }
     UpdateUI();
 }