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

            preventAutomaticFadeIn = false;
        }
Esempio n. 3
0
 public void Awake()
 {
     instance = this;
     opacity  = 1;
 }