Esempio n. 1
0
 private void FadeOut()
 {
     _FaderTween = SA.Common.Animation.ValuesTween.Create();
     _FaderTween.OnValueChanged += HandleOnFadeValueChanged;
     _FaderTween.OnComplete     += HandleFadeComplete;
     _FaderTween.ValueTo(0.5f, 0f, 0.5f, SA.Common.Animation.EaseType.linear);
 }
Esempio n. 2
0
    //--------------------------------------
    // Private Methods
    //--------------------------------------

    private void FadeIn()
    {
        Fader.enabled = true;
        _FaderTween   = SA.Common.Animation.ValuesTween.Create();
        _FaderTween.OnValueChanged += HandleOnFadeValueChanged;
        _FaderTween.ValueTo(0, 0.5f, 0.5f, SA.Common.Animation.EaseType.linear);
    }
Esempio n. 3
0
 private void Animate(float from, float to, SA.Common.Animation.EaseType easeType)
 {
     _CurrentTween = SA.Common.Animation.ValuesTween.Create();
     _CurrentTween.OnValueChanged += HandleOnValueChanged;
     _CurrentTween.ValueTo(from, to, 0.5f, easeType);
 }