void Blink1() { panel.SetActive(false); blinkEffect.SetDefaultFadeInAnimationCurves(0.8f); blinkEffect.SetDefaultFadeOutAnimationCurves(0.8f); blinkEffect.Blink(); Invoke("PlayBreathing", 1.1f); Invoke("Blink2", 3f); }
void WakeUp() { audioPlayer.Play(); blinkEffect.inAndOut = false; blinkEffect.SetDefaultFadeInAnimationCurves(0f); blinkEffect.Blink(); Invoke("LookAround", 1f); }
void Start() { audioPlayer = GetComponent <AudioSource>(); bgMusicPlayer = anna.GetComponent <AudioSource>(); blinkEffect = GetComponent <BlinkEffect>(); animation = GetComponent <Animation>(); levelManager = FindObjectOfType <LevelManager>(); blinkEffect.SetDefaultFadeInAnimationCurves(0.8f); blinkEffect.SetDefaultFadeOutAnimationCurves(0.8f); blinkEffect.Blink(); Invoke("WakeUp", 3f); }
public void BallCollisionEnter(Color ballColor, AudioClip audioClip, float collisionForce) { if (UIController.IsVibrationActive) { vibrationSensor.Vibrate(); } if (UIController.IsBlinkEffectActive) { blinkEffect.Blink(ballColor); } if (UIController.IsSoundActive) { var volume = audioVolumeCurve.Evaluate(collisionForce); EazySoundManager.PlaySound(audioClip, volume); } }
public static void Blink() { _blinker.Blink(); }