예제 #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 WakeUp()
    {
        audioPlayer.Play();
        blinkEffect.inAndOut = false;
        blinkEffect.SetDefaultFadeInAnimationCurves(0f);
        blinkEffect.Blink();

        Invoke("LookAround", 1f);
    }
예제 #3
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);
    }
예제 #4
0
    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);
        }
    }
예제 #5
0
 public static void Blink()
 {
     _blinker.Blink();
 }