コード例 #1
0
 public static void AIActorEngagedHook(Action <AIActor, bool> orig, AIActor self, bool isReinforcement)
 {
     if (!self.HasBeenEngaged)
     {
         if (self.SetsCustomFlagOnActivation())
         {
             AdvancedGameStatsManager.Instance.SetFlag(self.GetCustomFlagToSetOnActivation(), true);
         }
     }
     orig(self, isReinforcement);
 }