// Token: 0x060026A8 RID: 9896 RVA: 0x000E4ED4 File Offset: 0x000E32D4
        private void OnEnable()
        {
            if (!Provider.isServer)
            {
                return;
            }
            if (!this.isListeningPlayer)
            {
                PlayerLife.onPlayerLifeUpdated = (PlayerLifeUpdated)Delegate.Combine(PlayerLife.onPlayerLifeUpdated, new PlayerLifeUpdated(this.onPlayerLifeUpdated));
                this.isListeningPlayer         = true;
            }
            if (this.region != null)
            {
                return;
            }
            byte b;

            if (LevelNavigation.tryGetBounds(base.transform.position, out b))
            {
                this.region = ZombieManager.regions[(int)b];
            }
            if (this.region == null)
            {
                return;
            }
            if (!this.isListeningZombie)
            {
                ZombieRegion zombieRegion = this.region;
                zombieRegion.onZombieLifeUpdated = (ZombieLifeUpdated)Delegate.Combine(zombieRegion.onZombieLifeUpdated, new ZombieLifeUpdated(this.onZombieLifeUpdated));
                this.isListeningZombie           = true;
            }
        }
 protected override void OnEnable()
 {
     base.OnEnable();
     if (!Provider.isServer)
     {
         return;
     }
     if (!this.isListeningPlayer)
     {
         PlayerLife.onPlayerLifeUpdated = (PlayerLifeUpdated)Delegate.Combine(PlayerLife.onPlayerLifeUpdated, new PlayerLifeUpdated(this.onPlayerLifeUpdated));
         this.isListeningPlayer         = true;
     }
     if (this.region != null)
     {
         return;
     }
     this.region = ZombieManager.regions[this.navIndex];
     if (this.region == null)
     {
         return;
     }
     if (!this.isListeningZombie)
     {
         ZombieRegion zombieRegion = this.region;
         zombieRegion.onZombieLifeUpdated = (ZombieLifeUpdated)Delegate.Combine(zombieRegion.onZombieLifeUpdated, new ZombieLifeUpdated(this.onZombieLifeUpdated));
         this.isListeningZombie           = true;
     }
 }
 private void OnDisable()
 {
     if (this.isListening && this.region != null)
     {
         ZombieRegion zombieRegion = this.region;
         zombieRegion.onZombieLifeUpdated = (ZombieLifeUpdated)Delegate.Remove(zombieRegion.onZombieLifeUpdated, new ZombieLifeUpdated(this.onZombieLifeUpdated));
         this.isListening = false;
     }
     this.region = null;
 }
 // Token: 0x060026A9 RID: 9897 RVA: 0x000E4F94 File Offset: 0x000E3394
 private void OnDisable()
 {
     if (this.isListeningPlayer)
     {
         PlayerLife.onPlayerLifeUpdated = (PlayerLifeUpdated)Delegate.Remove(PlayerLife.onPlayerLifeUpdated, new PlayerLifeUpdated(this.onPlayerLifeUpdated));
         this.isListeningPlayer         = false;
     }
     if (this.isListeningZombie && this.region != null)
     {
         ZombieRegion zombieRegion = this.region;
         zombieRegion.onZombieLifeUpdated = (ZombieLifeUpdated)Delegate.Remove(zombieRegion.onZombieLifeUpdated, new ZombieLifeUpdated(this.onZombieLifeUpdated));
         this.isListeningZombie           = false;
     }
     this.region = null;
 }