public static void Postfix(ref TechVision __instance, ref ModuleVision vision) { OctantVision octantVision = __instance.GetComponent <OctantVision>(); if (octantVision) { octantVision.RemoveVision(vision); } return; }
public static bool Prefix(ref TechVision __instance, ref int team, ref Visible __result) { OctantVision octantVision = __instance.GetComponent <OctantVision>(); if (octantVision) { __result = octantVision.GetFirstVisibleTechIsEnemy(team); return(false); } return(true); }