Beispiel #1
0
	void Awake () {
		spawn = GetComponent<SpawnMarbles> ();
		health = GameObject.Find ("VillainHealth")
			.GetComponent<VillainHealth>();
		soundManager = GameObject.Find ("SoundManager")
			.GetComponent<SoundManagerScript>();
		explosion = GameObject.Find ("ExplosionController")
			.GetComponent<ExplosionController>();
	}
Beispiel #2
0
 void Awake()
 {
     spawn  = GetComponent <SpawnMarbles> ();
     health = GameObject.Find("VillainHealth")
              .GetComponent <VillainHealth>();
     soundManager = GameObject.Find("SoundManager")
                    .GetComponent <SoundManagerScript>();
     explosion = GameObject.Find("ExplosionController")
                 .GetComponent <ExplosionController>();
 }