public static FizzleFade CreateFade(FizzleColor color, Transform parent, bool hideDefault = false) { FizzleFade fizzleFade = Spawn <FizzleFade>(parent, "black"); fizzleFade.m_Color = color.Replace(a: hideDefault ? 0 : byte.MaxValue); return(fizzleFade); }
protected override void Awake() { FizzleSettings.RedirectException(); loadingObj = Spawn(m_LoadingScreen, transform, "_Loading"); splashObj = Spawn(m_SplashScreen, transform, "splash"); blackObj = FizzleFade.CreateFade("#666666", transform); start += () => StartCoroutine(ShowProcess()); }
protected override void Awake() { base.Awake(); fade = FizzleFade.CreateFade((FizzleColor)"#666666", transform, true); fizzleConsole = new FizzleConsole(transform.Find("console")); fizzleSubtitle = new FizzleSubtitle(transform.Find("subtitle")); fizzleFigure = new FizzleFigure(transform.Find("figure display")); titleText = transform.Find("title").GetComponent <Text>(); }