Пример #1
0
            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
                 *  ;
                 */
            }
Пример #2
0
 public static void Postfix(RationalAi __instance)
 {
     __instance.alive.ToggleStateMachine(smi => new LightsOutMonitor.Instance(smi.master));
 }