private void LosePower(PowerType powerType) { powerTimes [(int)powerType] = noOpVal; switch (powerType) { case PowerType.RapidFire: FirePoop.LosePower(); break; case PowerType.StopTime: ScrollingObject.LoseSlowTime(); break; default: break; } }
public void GainPower(PowerType powerType) { powerTimes [(int)powerType] = powerDurations [(int)powerType]; switch (powerType) { case PowerType.RapidFire: FirePoop.GainPower(); break; case PowerType.StopTime: ScrollingObject.GainSlowTime(); break; default: break; } }