示例#1
0
 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>();
 }