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); }
internal void ShowSubtitle(string str, FizzleColor color, float seconds = 2.0F) { stringQueue.Enqueue(new SubtitlePair { content = str, color = color, seconds = seconds }); }
internal static void LogColor(FizzleColor color, object message) { Show(message = Produce(message, "LOG"), color); Write(message); }
private static void Show(object message, FizzleColor color) { FizzleScene.FizzleView?.fizzleConsole?.ShowMessage($"<color={color}>{message}</color>"); }
protected void SetColor(FizzleColor color) { glass.SetColor(color.Replace(a: 120)); }