private static void Postfix(RationalAi __instance) { __instance.alive .ToggleStateMachine(smi => new MelancholyMonitor.Instance(smi.master, new MelancholyMonitor.Def())) .ToggleStateMachine(smi => new UnburiedCorpseMonitor.Instance(smi.master)) .ToggleStateMachine(smi => new HeartAttackMonitor.Instance(smi.master)); /* * __instance.dead * ; */ }
public static void Postfix(RationalAi __instance) { __instance.alive.ToggleStateMachine(smi => new LightsOutMonitor.Instance(smi.master)); }