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