private void FadeOut() { _FaderTween = SA_ValuesTween.Create(); _FaderTween.OnValueChanged += HandleOnFadeValueChanged; _FaderTween.OnComplete += HandleFadeComplete; _FaderTween.ValueTo(0.5f, 0f, 0.5f, SA_EaseType.linear); }
private void Animate(float from, float to, SA_EaseType easeType) { _CurrentTween = SA_ValuesTween.Create(); _CurrentTween.OnValueChanged += HandleOnValueChanged; _CurrentTween.ValueTo(from, to, 0.5f, easeType); }
//-------------------------------------- // Private Methods //-------------------------------------- private void FadeIn() { Fader.enabled = true; _FaderTween = SA_ValuesTween.Create(); _FaderTween.OnValueChanged += HandleOnFadeValueChanged; _FaderTween.ValueTo(0, 0.5f, 0.5f, SA_EaseType.linear); }