Exemple #1
0
 /// <summary>
 /// Initialize profile.
 /// </summary>
 /// <returns>Returns coroutine.</returns>
 private IEnumerator InitializeProfile(SceneLoadProfile loadProfile)
 {
     if (loadProfile)
     {
         yield return(loadProfile.LoadSceneAdditively());
     }
 }
Exemple #2
0
    /// <summary>
    /// Start the engine.
    /// </summary>
    protected virtual void Start()
    {
        // Load the scenes in the profile additively.
        if (profile)
        {
            Debug.Log("Profile found. Loading profiles.");
            this.StartCoroutine(profile.LoadSceneAdditively());
        }

        // Initialize the state machine.
        this.engine.Initialize(new GameState(this.engine));
    }