예제 #1
0
파일: Start_BGM.cs 프로젝트: ssoso27/avoid
 void Awake()
 {
     if (instance != null)
     {
         Destroy(this.gameObject);
         return;
     }
     instance = this;
     DontDestroyOnLoad(this.gameObject);
 }
예제 #2
0
파일: Intro.cs 프로젝트: ssoso27/avoid
 // Use this for initialization
 void Start()
 {
     Audio_BGM = GameObject.Find("Start_BGM").GetComponent <Start_BGM>();
     Audio_BGM.StartGame();
 }
예제 #3
0
파일: GameOver.cs 프로젝트: ssoso27/avoid
 // Use this for initialization
 void Start()
 {
     GameObject.Find("GameManager").GetComponent <restart>().enabled = false; // rt버튼 처음에 안 뜨게
     Audio_BGM = GameObject.Find("Start_BGM").GetComponent <Start_BGM>();
 }