public virtual void Activate() { fromGroup.interactable = false; toGroup.gameObject.SetActive(true); toGroup.alpha = 0f; toGroup.interactable = true; CanvasGroupFade.FadeAlpha(this, fromGroup, 0.0f, time); CanvasGroupFade.FadeAlpha(this, toGroup, 0.0f, time); }
public static void FadeAlpha(MonoBehaviour holder, CanvasGroup group, float to, float time, System.Action onComplete = null) { group.gameObject.SetActive(true); holder.StartCoroutine(CanvasGroupFade.FadeAlphaAsync(group, to, time, onComplete)); }
public void FadeAlpha(float to, float time, System.Action onComplete = null) { CanvasGroupFade.FadeAlpha(this, this.canvasGroup, to, time, onComplete); }