Esempio n. 1
0
    // Start is called before the first frame update

    private void Awake()
    {//这是用来播放bgm的,但是其实并没有用这个吧………………是在另一个地方放的
        bossmusic = GameObject.Find("bossmusic").GetComponent <bossmusic>();
        control   = GameObject.Find("Gamecontrol").GetComponent <controlscript>();
    }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     control = GameObject.Find("Gamecontrol").GetComponent <controlscript>();
 }
Esempio n. 3
0
 // Use this for initialization
 private void Awake()
 {
     control = GameObject.Find("Gamecontrol").GetComponent <controlscript>();
 }