Esempio n. 1
0
 void Start()
 {
     callOwl          = FindObjectOfType <ScoreTracker>();
     callCollectSound = FindObjectOfType <OwlCollection>();
     owlAdvance       = FindObjectOfType <MusicAdvance>();
     if (owlTrummor)
     {
         target = GameObject.Find("Panda").GetComponent <Transform>();
     }
     if (owlGitarr)
     {
         target = GameObject.Find("Owl(Trum)").GetComponent <Transform>();
     }
     if (owlPiano)
     {
         target = GameObject.Find("Owl(Gitarr)").GetComponent <Transform>();
     }
     if (owlBas)
     {
         target = GameObject.Find("Panda").GetComponent <Transform>();
     }
     if (owlBanjo)
     {
         target = GameObject.Find("Owl(Bas)").GetComponent <Transform>();
     }
     if (owlTrumpet)
     {
         target = GameObject.Find("Owl(Banjo)").GetComponent <Transform>();
     }
     if (owlOrgel)
     {
         target = GameObject.Find("Owl(Piano)").GetComponent <Transform>();
     }
 }
Esempio n. 2
0
 void Start()
 {
     callOwl          = FindObjectOfType <ScoreTracker>();
     callCollectSound = FindObjectOfType <OwlCollection>();
 }