예제 #1
0
 protected IEnumerator Run()
 {
     TurnOn();
     Battery.Activate();
     while (Battery.Active && _active)
     {
         yield return(null);
     }
     TurnOff();
 }