using UnityEngine; using GatherAndDefend.LevelEditor; public class LevelManagerScript : SingletonBehaviour { public Level firstLevel; protected override void Awake() { DontDestroyOnLoad(gameObject); if (!firstLevel) throw new System.Exception("there is no first level set in the level manager script"); LevelManager.Instance.LoadLevel(firstLevel, true); } void Update() { LevelManager.Instance.UpdateLevel(); } }