예제 #1
0
 private void EffectUpdate()
 {
     lock (this)
     {
         if (ActiveEffect.IsSensorDriven && State == TankState.Idle)
         {
             IdleEffect.Update();
         }
         else
         {
             ActiveEffect.Update();
         }
     }
 }
예제 #2
0
 private void EffectUpdateFrame()
 {
     lock (this)
     {
         if (State == TankState.Idle && ActiveEffect.IsSensorDriven)
         {
             IdleEffect.Update();
         }
         else
         {
             ActiveEffect.Update();
         }
     }
 }