示例#1
0
        public static bool Prefix(BaseUpgradeConsoleGeometry __instance)
        {
            var mats = __instance.fabricator.ghost.GetAllComponentsInChildren <SkinnedMeshRenderer>();


            {
                foreach (var mat in mats)
                {
                    mat.material.color = new Color32(Convert.ToByte(Config.fabricatorValue), Convert.ToByte(Config.fabricatorgValue), Convert.ToByte(Config.fabricatorbValue), 1);
                }
            }


            return(true);
        }
示例#2
0
        public static bool Prefix(BaseUpgradeConsoleGeometry __instance)
        {
            var basebaseColor = __instance.GetAllComponentsInChildren <MeshRenderer>();



            foreach (var basebase02Color in basebaseColor)
            {
                if (basebase02Color.name.Contains("Starship_control_terminal_02"))
                {
                    basebase02Color.material.color = new Color32(Convert.ToByte(Config.fabricatorValue), Convert.ToByte(Config.fabricatorgValue), Convert.ToByte(Config.fabricatorbValue), 1);
                }
            }



            return(true);
        }