IEnumerator BlendOutpromptSayingPressERoutine() { while (pressEpromptToBlendOut.alpha > 0.01) { pressEpromptToBlendOut.alpha = Mathf.Lerp(pressEpromptToBlendOut.alpha, 0, blendOutPromptSayingPressESpeed * Time.deltaTime); yield return(null); } Debug.Log("Reached BlendOut"); OnScreenFinsihedBeingBlendedOut.Invoke(); }
IEnumerator BlendOutGroupRoutine() { while (groupToBlendOut.alpha > 0.01) { groupToBlendOut.alpha = Mathf.Lerp(groupToBlendOut.alpha, 0, blendOutGroupSpeed * Time.deltaTime); yield return(null); } Debug.Log("Reached BlendOut"); OnScreenFinsihedBeingBlendedOut.Invoke(); }