private void Awake()

ย  ย  {

ย  ย  ย  ย  if(instance == null)

ย  ย  ย  ย  {

ย  ย  ย  ย  ย  ย  instance = this;

ย  ย  ย  ย  }

ย  ย  ย  ย  else if(instance != this)

ย  ย  ย  ย  {

ย  ย  ย  ย  ย  ย  Destroy(gameObject);

ย  ย  ย  ย  }


ย  ย  ย  ย  DontDestroyOnLoad(gameObject);

ย  ย  }



์ด๋ ‡๊ฒŒ ๋งŒ๋“œ๋Š”๊ฑฐ ๊ดœ์ฐฎ๋‚˜์š”?