private void OnRVCompleted(bool _completed) { #if VOODOO_SAUCE SetInteractivity(VoodooSauce.IsRewardedVideoAvailable()); #else SetInteractivity(false); #endif }
private void OnSpecialButtonDelayEnded(Timer _timer) { #if VOODOO_SAUCE UpdateSpecialButtonInteractivity(specialButtonDelay <= 0 && VoodooSauce.IsRewardedVideoAvailable()); #else UpdateSpecialButtonInteractivity(specialButtonDelay <= 0); #endif }
private void OnEnable() { #if VOODOO_SAUCE SetInteractivity(VoodooSauce.IsRewardedVideoAvailable()); #elif UNITY_EDITOR SetInteractivity(true); #else SetInteractivity(false); #endif }
/// <summary> /// Update the interactivity of the button based on the rewarded video availability /// </summary> public void UpdateInteractivity() { bool buttonPickerInteractivity; #if VOODOO_SAUCE buttonPickerInteractivity = VoodooSauce.IsRewardedVideoAvailable(); #else buttonPickerInteractivity = true; #endif if (buttonPicker) { buttonPicker.interactable = buttonPickerInteractivity; } }
/// <summary> /// Launch the different countdowns /// </summary> public void Launch() { if (defaultButtonDelayGameObjectActivation) { defaultButtonDelayGameObjectActivation.StartCountdown(); } if (specialButton == null) { return; } #if VOODOO_SAUCE if (specialButton is ButtonRV && !VoodooSauce.IsRewardedVideoAvailable()) { UpdateSpecialButtonInteractivity(false); return; } #endif StartDelayBarCountdown(); }