using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class notdestroy : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
ย ย void awake ()
ย ย {
ย ย ย ย DontDestroyOnLoad(this.gameObject);
ย ย }
}
์ด๋ ๊ฒ ํด๋์ผ๋ฉด ์ญ์ ์๋์ด์ผ ํ๋ ๊ฑฐ ์๋?
์ ์๋์ด ์๋์ง
awake -> Awake ๋ก ๋ฐ๊พธ์
ใด ๋ ์์ค์ค์ค์ค์ค์ค์ค์ค์น ์ใ ใ ใ ใ ใ ใ ใ ใ ใ ใ ใ ใ ใ ใ ใ ใ ใ ใ ใ ใ ใ ใ ใ ใ ใ ใ ใ ใ ใ ใ ์ธ์์ ๋ด ์ ์ ์ข๋ด. ใณใณ ๋ง ์ํด์คฌ์ผ๋ฉด ์์ํ ๋ชฐ๋์๋ฏ