C#
Singleton Pattern
가게주인
2022. 6. 14. 13:40
static으로 변수 선언 후 초기화
if( = null)일 시
instance = this
else일 시
Destroy(gameObject)