Example #1
0
        protected override void OnDisabled()
        {
            base.OnDisabled();
            GameEvents.onAsteroidSpawned.Remove(AsteroidEventHandler.OnAsteroidSpawned);

            ServerAsteroids.Clear();
            ServerAsteroidTrackStatus.Clear();
        }
Example #2
0
        public override void OnDisabled()
        {
            base.OnDisabled();
            GameEvents.onAsteroidSpawned.Remove(AsteroidEventHandler.OnAsteroidSpawned);
            GameEvents.onGameSceneLoadRequested.Remove(AsteroidEventHandler.OnGameSceneLoadRequested);

            ServerAsteroids.Clear();
            ServerAsteroidTrackStatus.Clear();
        }
 protected override void OnDisabled()
 {
     base.OnDisabled();
     ServerAsteroids.Clear();
     ServerAsteroidTrackStatus.Clear();
 }