Beispiel #1
0
    IEnumerator BeginGame()
    {
        //Wait one frame so everything is initialized.
        yield return(null);

        //Initialize the database.
        ResourceDatabase.InitializeDatabase();

        //Default profession (TEMPORARY)
        GameData.SetPlayerProfession(ResourceDatabase.GetRaceByParameter("Agent"));

        //Use the init sequence to initialize everything.
        StartCoroutine(InitializationSequence.instance.LoadEverything());
    }
Beispiel #2
0
    void Start()
    {
        CurrentLevelVariableManagement.SetGameUIReferences();
        //Initialize the static database.
        ResourceDatabase.InitializeDatabase();
        //Initialize the initial UI elements.
        if (InitializeProfileSwitcher != null)
        {
            InitializeProfileSwitcher();
        }
        else
        {
            Debug.LogError("InitializeProfileSwitcher was null!!");
        }

        CurrentLevelVariableManagement.GetMainGameControl().DefineInitialLevelElements();
    }