Пример #1
0
    void Blink1()
    {
        panel.SetActive(false);

        blinkEffect.SetDefaultFadeInAnimationCurves(0.8f);
        blinkEffect.SetDefaultFadeOutAnimationCurves(0.8f);
        blinkEffect.Blink();
        Invoke("PlayBreathing", 1.1f);
        Invoke("Blink2", 3f);
    }
Пример #2
0
    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);
    }