void Start() { kalancanScript = kalanCanText.GetComponent <KalanCanController>(); canonScript = cannon.GetComponent <CanonController>(); if (GameObject.FindGameObjectsWithTag("Music").Length >= 2) { GameObject[] musics = GameObject.FindGameObjectsWithTag("Music"); GameObject.Destroy(musics[1]); } }
void Start() { kalancanScript = kalanCanText.GetComponent <KalanCanController>(); mobileScript = spaceButton.GetComponent <MobileController>(); zRotateScript = zRotateCont.GetComponent <zRotateController>(); }