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); }