Пример #1
0
        private static void Postfix(GasVentConfig __instance, GameObject go, Tag prefab_tag)
        {
            Debug.Log(" === VentPressureMod_GasVentConfig_ConfigureBuildingTemplate Postfix === ");
            Vent vent = go.GetComponent <Vent>();

            VentPressureState.StateManager.State.MaximumPressure.TryGetValue("GasVent", out vent.overpressureMass);
        }
Пример #2
0
 static void Postfix(GasVentConfig __instance, ref GameObject go)
 {
     Vent vent = go.AddOrGet <Vent>(); vent.overpressureMass = DynamicBuildingsState.StateManager.State.GVOP;
 }