Beispiel #1
0
 // Use this for initialization
 void Start()
 {
     ammoCanSpawner  = GameObject.FindGameObjectWithTag("Ammo Can Controller").GetComponent <AmmoCanSpawner> ();
     bulletGenerator = GameObject.FindGameObjectWithTag("Player").GetComponent <bulletGenerator> ();
     audioScript     = GameObject.FindGameObjectWithTag("Audio Controller").GetComponent <AudioScript> ();
 }
Beispiel #2
0
 // Use this for initialization
 void Start()
 {
     bulletGenerator = player.GetComponent <bulletGenerator> ();
 }