IEnumerator BlendInButtonsAndBlendOutHintRoutine()
    {
        if (OnButtonsGetBlendedIn != null)
        {
            OnButtonsGetBlendedIn.Invoke();
        }

        while (buttonGroup.alpha < .999f)
        {
            buttonGroup.alpha = Mathf.Lerp(buttonGroup.alpha, 1, buttonBlendInTime * Time.deltaTime);
            yield return(null);
        }
    }
Example #2
0
    IEnumerator BlendInButtonsAndBlendOutHintRoutine()
    {
        if (OnButtonsGetBlendedIn != null)
        {
            OnButtonsGetBlendedIn.Invoke();
        }

        //while ( buttonGroup.alpha < .999f)
        //{
        //    buttonGroup.alpha = Mathf.Lerp(buttonGroup.alpha, 1, buttonBlendInTime += Time.deltaTime);
        //    yield return null;
        //}
        buttonGroup.alpha = 1;
        yield return(null);
    }