public static void Postfix(Drillable __instance) { try { CDC_Config cdc = __instance.gameObject.AddComponent <CDC_Config>(); Logger.Log("Added component to Drillable!", QMod.assembly); } catch (Exception e) { Logger.Exception(e, LoggedWhen.InPatch, QMod.assembly); } }
public static void Postfix(Drillable __instance) { CDC_Config cdc = __instance.gameObject.AddComponent <CDC_Config>(); Logger.Log("Added component to Drillable!"); }