using UnityEngine; public class PermanentController : MonoBehaviour { private static PermanentController _instance; private void Awake() { if (_instance != null) { Destroy(this.gameObject); return; } _instance = this; DontDestroyOnLoad(this.gameObject); } }