Exemple #1
0
        public override void OnRemovedFromScene(object source)
        {
            base.OnRemovedFromScene(source);

            MyPlanets.UnRegister(this);

            MyGravityProviderSystem.RemovePlanet(this);
            MyOxygenProviderSystem.RemoveOxygenGenerator(this);
        }
Exemple #2
0
        protected override void Closing()
        {
            base.Closing();
            MyGravityProviderSystem.RemovePlanet(this);
            MyOxygenProviderSystem.RemoveOxygenGenerator(this);

            if (m_physicsShapes != null)
            {
                foreach (var voxelMap in m_physicsShapes)
                {
                    voxelMap.Value.Close();
                }
            }
        }
Exemple #3
0
 protected override void Closing()
 {
     base.Closing();
     MyGravityProviderSystem.RemovePlanet(this);
     MyOxygenProviderSystem.RemoveOxygenGenerator(this);
 }