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