public void Update()
        {
            if (canvasGroup == null)
            {
                updateIsDone = true;
                return;
            }

            canvasGroup.alpha = Mathf.Lerp(startAlpha, endAlpha, t);

            if (t < 1)
            {
                t += Time.deltaTime / duration;
            }

            bool exit = HeroKitCommonRuntime.DoFloatsMatch(canvasGroup.alpha, endAlpha);

            if (exit)
            {
                updateIsDone = true;
            }
        }