Esempio n. 1
0
 void Awake()
 {
     if (instance != null)
     {
         Destroy(this.gameObject);
         return;
     }
     instance = this;
     DontDestroyOnLoad(this.gameObject);
 }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     Audio_BGM = GameObject.Find("Start_BGM").GetComponent <Start_BGM>();
     Audio_BGM.StartGame();
 }
Esempio n. 3
0
 // Use this for initialization
 void Start()
 {
     GameObject.Find("GameManager").GetComponent <restart>().enabled = false; // rt버튼 처음에 안 뜨게
     Audio_BGM = GameObject.Find("Start_BGM").GetComponent <Start_BGM>();
 }