예제 #1
0
 /// <summary>
 /// Rozpoczyna symulacje
 /// </summary>
 public static void Start()
 {
     Game.SetState(GameState.Simulation);
     PlanetColliders.Enable(true);
     PlanetForce.PushPlanets();
     MenuSwitcher.Switch(MenuState.Simulation);
 }
예제 #2
0
 /// <summary>
 /// Zatrzymuje symulacje
 /// </summary>
 public static void Stop()
 {
     PlanetPositioner.ResetPlanetsPosition();
     PlanetForce.StopPlanets();
     Game.SetState(GameState.Creative);
     PlanetColliders.Enable(false);
     MenuSwitcher.Switch(MenuState.Free);
 }
    // Use this for initialization
    void Start()
    {
        LoadSun();
        PlanetColliders.Enable(false);

        Game.SetState(GameState.Creative);

        //Odpalanie menu na starcie
        MenuSwitcher.Switch(MenuState.Free);
    }