IEnumerator BlendInButtonsAndBlendOutHintRoutine() { if (OnButtonsGetBlendedIn != null) { OnButtonsGetBlendedIn.Invoke(); } while (buttonGroup.alpha < .999f) { buttonGroup.alpha = Mathf.Lerp(buttonGroup.alpha, 1, buttonBlendInTime * Time.deltaTime); yield return(null); } }
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); }