using System.Collections; using System.Collections.Generic; using UnityEngine; [DefaultExecutionOrder(-1000)] public class DontDestroySelf : MonoBehaviour { private void Awake() { DontDestroyOnLoad(this.gameObject); } }