示例#1
0
        static void Postfix(ref Thing __result)
        {
            ThingWithComps twc = __result as ThingWithComps;

            if (twc != null)
            {
                CustomThingDef def = twc.def as CustomThingDef;
                if (def != null && !def.followStuffColor)
                {
                    twc.SetColor(Color.white);
                    twc.SetColor(Color.black);
                    twc.SetColor(Color.white);
                }
            }
        }
示例#2
0
        static void Prefix(ref Thing product)
        {
            ThingWithComps twc = product as ThingWithComps;

            if (twc != null)
            {
                CustomThingDef def = twc.def as CustomThingDef;
                if (def != null && !def.followStuffColor)
                {
                    twc.SetColor(Color.white);
                }
            }
        }