Exemplo n.º 1
0
        public bool SameAs(GradientHairSettings other)
        {
            if (!enabled && !other.enabled)
            {
                return(true);
            }

            return(enabled == other.enabled && colorB == other.colorB && mask == other.mask);
        }
Exemplo n.º 2
0
        public static void SetGradientHair(Pawn pawn, bool enabled, Color color)
        {
            CompGradientHair comp = pawn.GetComp <CompGradientHair>();

            if (comp == null)
            {
                return;
            }

            GradientHairSettings settings = comp.Settings;

            settings.enabled = enabled;
            settings.colorB  = color;
        }
Exemplo n.º 3
0
        public static bool GetGradientHair(Pawn pawn, out bool enabled, out Color color)
        {
            CompGradientHair comp = pawn.GetComp <CompGradientHair>();

            if (comp == null)
            {
                enabled = false;
                color   = Color.white;
                return(false);
            }

            GradientHairSettings settings = comp.Settings;

            enabled = settings.enabled;
            color   = settings.colorB;
            return(true);
        }