private static void HealthManager_OnEnable(On.HealthManager.orig_OnEnable orig, HealthManager self) { if (!(self is HealthManagerProxy)) { orig(self); } }
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); } }