public static MoonSoundManager GetInstance() { if (instance == null) { instance = (MoonSoundManager)FindObjectOfType(typeof(MoonSoundManager)); if (instance == null) { Debug.Log("Sound MGR 애러"); } } return(instance); }
private void Awake() { if (instance != null && instance != this) { DestroyImmediate(gameObject); } else { instance = this; } AwakeAfter(); }