Exemplo n.º 1
0
        public override void OnRemovedFromScene(object source)
        {
            base.OnRemovedFromScene(source);

            MyPlanets.UnRegister(this);

            MyGravityProviderSystem.RemoveNaturalGravityProvider(Components.Get <MyGravityProviderComponent>());
            MyOxygenProviderSystem.RemoveOxygenGenerator(this);
        }
Exemplo n.º 2
0
        public override void OnRemovedFromScene(object source)
        {
            base.OnRemovedFromScene(source);

            MyPlanets.UnRegister(this);

            MyGravityProviderSystem.RemovePlanet(this);
            MyOxygenProviderSystem.RemoveOxygenGenerator(this);
        }
Exemplo n.º 3
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();
                }
            }
        }
Exemplo n.º 4
0
 protected override void Closing()
 {
     base.Closing();
     MyGravityProviderSystem.RemovePlanet(this);
     MyOxygenProviderSystem.RemoveOxygenGenerator(this);
 }