IEnumerator ToPlayRoutine() { editToolbar.Close(); float lerpVal = 0; headerMenu.SetEditCanvasInteractable(false); playHeader.interactable = true; playHeader.blocksRaycasts = true; if (!GameBuilderApplication.IsStandaloneExport) { headerMenu.SetPlayBackground(true); } while (lerpVal < 1) { lerpVal = Mathf.Clamp01(lerpVal + Time.unscaledDeltaTime * LERP_SPEED); headerMenu.SetEditCanvasAlpha(1 - lerpVal); playTooltip.alpha = lerpVal; playHeader.alpha = lerpVal; yield return(null); } headerMenu.SetEditCanvasAlpha(0); playTooltip.alpha = 1; playHeader.alpha = 1; }