static void Postfix(TeeterGameRunner __instance, BoolFalse ___npcHide, BoolFalse ___hidePlayer) { Actor npcActor = (Actor)__instance.GetType().BaseType.GetProperty("NpcActor").GetValue(__instance, null); if (!enabled || !settings.ReplaceTeeterTotterGame || !CanTeeterInteract(npcActor)) { return; } Module <Player> .Self.actor.RemoveVisible(___hidePlayer); npcActor.RemoveVisible(___npcHide); }
void Update() { //Invokes bool enabled event once if (trueEventCheck == false) { if (GetComponent <Toggle>().isOn) { falseEventCheck = false; BoolTrue.Invoke(); trueEventCheck = true; } } //Invokes bool disabled event once if (GetComponent <Toggle>().isOn == false) { if (falseEventCheck == false) { trueEventCheck = false; BoolFalse.Invoke(); falseEventCheck = true; } } }