示例#1
0
 void Awake()
 {
     controlScript = GameObject.FindObjectOfType <controlScript>();
 }
 // Start is called before the first frame update
 void Awake()
 {
     instance = this;
 }
示例#3
0
 void Start()
 {
     bindButtons();
     controlScript = gameControl.GetComponent <controlScript>();
     audioSource   = GetComponent <AudioSource>();
 }