예제 #1
0
파일: World.cs 프로젝트: teonistor/snake-n
 public static void CollectOneEnergy()
 {
     if (GameState == GameState.Playing)
     {
         CurrentPoints += OneEnergyPoints;
         currentEnergy  = targetEnergy =
             Mathf.Min(targetEnergy + OneEnergyEnergy, MaximumEnergy);
         SoundEffects.CollectOneEnergy();
     }
 }