コード例 #1
0
        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);
        }
コード例 #2
0
 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));
 }
コード例 #3
0
 public void FadeAlpha(float to, float time, System.Action onComplete = null)
 {
     CanvasGroupFade.FadeAlpha(this, this.canvasGroup, to, time, onComplete);
 }