private IEnumerator FadeIn() { float value = 0; OnFadeInStart.Invoke(); while (value < 1) { value += 0.05f; canvasGroup.alpha = value; yield return(new WaitForEndOfFrame()); } OnFadeInEnd.Invoke(); }
public static void AudioFadeInEnd() { OnFadeInEnd?.Invoke(); }