int instanceCount = FindObjectsOfType(GetType()).Length; if (instanceCount > 1) { gameObject.SetActive(false); Destroy(gameObject); } else { DontDestroyOnLoad(gameObject); } 1. 해당하는 오브젝트들의 길이를 재서 판단하는 방법 static AudioPlayer instance; if (instance != null) { gameObject.SetActive(false); Destroy(gameObject); } else { instance = this; DontDestroyOnLoad(gameObject); } 2. static 변수를 통한 싱글톤 패턴 구현 stati..