You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
424 B
C#
19 lines
424 B
C#
using D2D.Core;
|
|
using D2D.Databases;
|
|
using D2D.Utilities;
|
|
using D2D.Utils;
|
|
using UnityEngine;
|
|
|
|
namespace D2D.Gameplay
|
|
{
|
|
public class LastLevelSceneLoader : MonoBehaviour
|
|
{
|
|
private void Start()
|
|
{
|
|
var sceneLoader = this.FindLazy<SceneLoader>();
|
|
var db = this.FindLazy<GameProgressionDatabase>();
|
|
|
|
sceneLoader.LoadLevel(db.LastSceneNumber.Value);
|
|
}
|
|
}
|
|
} |