Exemplo n.º 1
0
 private static void HealthManager_OnEnable(On.HealthManager.orig_OnEnable orig, HealthManager self)
 {
     if (!(self is HealthManagerProxy))
     {
         orig(self);
     }
 }
Exemplo n.º 2
0
 private static void TrackEnemy(On.HealthManager.orig_OnEnable orig, HealthManager self)
 {
     // I think there could be duplicates in the case of an hm getting disabled/re-enabled without this check
     if (!_enemies.Contains(self))
     {
         _enemies.Add(self);
     }
 }