예제 #1
0
 private void Update()
 {
     if (On)
     {
         if (!manager.SpendPower(-PowerRate * Time.deltaTime))
         {
             On = false;
             light.ShrinkLight();
         }
         if (light.On)
         {
             light.GrowLight();
         }
     }
     else
     {
         if (!light.On)
         {
             light.ShrinkLight();
         }
     }
 }