[unity] 코드 구역 구분 하기
·
게임 개발
//#region? 구역 구분 #region singleton public static GameManager instance = null; private void Awake() { if (null == instance) { instance = this; DontDestroyOnLoad(this.gameObject); } else { Destroy(this.gameObject); } } #endregion