public void UpdateWipersAuto() { if (ignitionStatus == IgnitionStatus.Off) { return; } prevWiperStatus = wiperStatus; animationManager.PlayWiperAnim(0); //temp placeholder code, it should be a auto wiper logic here instead of turning off }
void UpdateWipers() { if (animationManager == null) { return; } if (animationManager.CanWiperSwitchLevel()) { if (prevWiperStatus != wiperStatus) { animationManager.PlayWiperAnim(wiperStatus); prevWiperStatus = wiperStatus; } } }