Inheritance: MonoBehaviour
Example #1
0
    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>();

    }
Example #2
0
 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>();
 }
Example #3
0
 void Awake()
 {
     randomShake = this;
 }
Example #4
0
 void Awake()
 {
     randomShake = this;
 }