void Awake() { sound = GameObject.Find("Handeler").GetComponent<SoundManager>(); //With the invokeReapeat the catapult can shoot more then 1 projectile. InvokeRepeating("CoroutineProjectile", 1, 5); screenShake = GameObject.Find("Camera").GetComponent<RandomShake>(); }
void Awake() { //adrenalineBar = GameObject.Find("AdrenalineBar").GetComponent<AdrenalineBar> (); rampageBar = GameObject.Find("RampageBar").GetComponent<RampageBar>(); healthBar = GameObject.Find("HealthBar").GetComponent<HealthBar>(); scoreAdd = GetComponent<AddScore>(); spawnExplosiveBarrel = GetComponent<SpawnExplosiveBarrel>(); screenShake = GameObject.Find("Camera").GetComponent<RandomShake>(); sound = GameObject.Find("Handeler").GetComponent<SoundManager>(); }
void Awake() { randomShake = this; }
void Awake() { randomShake = this; }