public void Act() { float currentTime = c_data.f_currentCountdownTime; IncrementCartridge.Decrement(ref currentTime, Time.deltaTime, c_data.i_targetTime); c_data.f_currentCountdownTime = currentTime; }
public void Act() { float currentTime = c_timerData.f_currentTime; IncrementCartridge.Decrement(ref currentTime, Time.deltaTime, Constants.ZERO_F); c_timerData.f_currentTime = currentTime; }
public void TransitionAct() { int currentValue = c_ctrlData.i; if (c_ctrlData.i_increasing > 0) { cart_incr.Increment(ref currentValue, Constants.ONE, c_ctrlData.i_max); } else if (c_ctrlData.i_increasing < 0) // we should never reach this line with == 0 but just in case... { cart_incr.Decrement(ref currentValue, Constants.ONE, c_ctrlData.i_min); } c_ctrlData.i = currentValue; c_ctrlData.f_currentTickTime = Constants.ZERO_F; }