コード例 #1
0
 public static void Postfix(BuildingComplete __instance)
 {
     if (string.Compare(__instance.name, (GasPressureValveConfig.ID + "Complete")) == 0)
     {
         __instance.GetComponent <KAnimControllerBase>().TintColour = GasPressureValveConfig.Color();
     }
     else if (string.Compare(__instance.name, (LiquidPressureValveConfig.ID + "Complete")) == 0)
     {
         __instance.GetComponent <KAnimControllerBase>().TintColour = LiquidPressureValveConfig.Color();
     }
 }
コード例 #2
0
 public static void Prefix()
 {
     GasPressureValveConfig.Setup();
     LiquidPressureValveConfig.Setup();
 }