private void Awake(){ if(instance == null){ instance = this; DontDestroyOnLoad(instance); } else{ Destroy(gameObject) } }
UnityEngine.Object.DontDestroyOnLoad(gameObject);