Beispiel #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);
        }
 public void FadeAlpha(float to, float time, System.Action onComplete = null)
 {
     CanvasGroupFade.FadeAlpha(this, this.canvasGroup, to, time, onComplete);
 }