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