示例#1
0
        public static void Postfix(ref TechVision __instance, ref ModuleVision vision)
        {
            OctantVision octantVision = __instance.GetComponent <OctantVision>();

            if (octantVision)
            {
                octantVision.RemoveVision(vision);
            }
            return;
        }
示例#2
0
        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);
        }