/// <summary> /// Applied after SortRows runs. /// </summary> internal static void Postfix(PinnedResourcesPanel __instance) { var pcm = __instance.GetComponent <PinnedCritterManager>(); if (pcm != null) { pcm.PopulatePinnedRows(); } }
/// <summary> /// Applied before OnSpawn runs. /// </summary> internal static void Prefix(PinnedResourcesPanel __instance) { __instance.gameObject.AddOrGet <PinnedCritterManager>(); }