private void Awake() { if (instance != null && instance != this) { Destroy(gameObject); } else { instance = this; DontDestroyOnLoad(gameObject); } }
void Start() { stManager = GameObject.FindGameObjectWithTag("SceneManager").GetComponent <SceneTransition_Manager>(); }