Пример #1
0
        public override void OnAddedToScene(object source)
        {
            base.OnAddedToScene(source);

            MyPlanets.Register(this);

            MyGravityProviderSystem.AddNaturalGravityProvider(Components.Get <MyGravityProviderComponent>());
            MyOxygenProviderSystem.AddOxygenGenerator(this);
        }
 public override void LoadData()
 {
     MyGravityProviderSystem.AddNaturalGravityProvider(this);
 }