Ejemplo n.º 1
0
 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]);
     }
 }
Ejemplo n.º 2
0
 void Start()
 {
     kalancanScript = kalanCanText.GetComponent <KalanCanController>();
     mobileScript   = spaceButton.GetComponent <MobileController>();
     zRotateScript  = zRotateCont.GetComponent <zRotateController>();
 }