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