예제 #1
0
 void Awake()
 {
     controlScript = GameObject.FindObjectOfType <controlScript>();
 }
예제 #2
0
 // Start is called before the first frame update
 void Awake()
 {
     instance = this;
 }
예제 #3
0
파일: canvasScript.cs 프로젝트: highnet/C-
 void Start()
 {
     bindButtons();
     controlScript = gameControl.GetComponent <controlScript>();
     audioSource   = GetComponent <AudioSource>();
 }