void Start()
    {
        //initialize settings
        Settings.Load();
        //load misc stuff
        NameGenerator.Initialize();
        ModelDB.Initialize();
        EventDB.Initialize();
        PaletteDB.Initialize();

        //load saves first
        SaveManager.Initialize();

        _planet.GetComponent <PlanetEntity>().Initialize(
            PaletteDB.Get(_planetType).Instantiate(),
            Random.Range(0.2f, .9f),
            true);

        //hide stuff
        _panels = new GameObject[] { _setupPanel, _savesPanel, _instructionsPanel, _optionsPanel, _creditsPanel };

        for (int i = 0; i < _panels.Length; i++)
        {
            _panels[i].SetActive(false);
        }

        InitalizeMediaIcons();
        InitializeMenues();

        //start main ost
        AudioManager.getInstance.PlayOST(OSTTheme.MainMenu);
    }
Example #2
0
    public Planet(string name, Vector3 location, Random random, PlanetType planetType) : base(name, location, random)
    {
        base.type  = PointOfInterestType.Planet;
        base.model = ModelDB.GetPlanet(planetType, random);

        _waterLevel = random.Next(0, 100) * .01f;
        _planetType = planetType;
        _palette    = PaletteDB.Get(_planetType).Instantiate();
    }