Example #1
0
 public static void FadeOut(float t, System.Action callback = null)
 {
     MHSFader.instance.opacity = 0;
     MHSFader.FadeTo(1, t, () => {
         if (callback != null)
         {
             callback();
         }
     });
 }
Example #2
0
        public void Start()
        {
            MHS.WaitRun(0.5f, () => {
                if (!preventAutomaticFadeIn)
                {
                    MHSFader.FadeIn(0.75f);
                }
            });

            preventAutomaticFadeIn = false;
        }
Example #3
0
 public void Awake()
 {
     instance = this;
     opacity  = 1;
 }