Beispiel #1
0
 // Start is called before the first frame update
 void Start()
 {
     if (soundLocations == null)
     {
         soundLocations = GameObject.FindGameObjectWithTag("WwiseGlobal").GetComponent <SoundLocations>();
     }
     name = "Bullet";
 }
Beispiel #2
0
 // Start is called before the first frame update
 void Start()
 {
     bulletFired = false;
     shotDead    = false;
     if (soundLocations == null)
     {
         soundLocations = GameObject.FindGameObjectWithTag("WwiseGlobal").GetComponent <SoundLocations>();
     }
 }
Beispiel #3
0
 // Start is called before the first frame update
 void Start()
 {
     gameObject.name = "Pickup";
     isPickedUp      = false;
     isActive        = true;
     soundLocations  = GameObject.FindGameObjectWithTag("WwiseGlobal").GetComponent <SoundLocations>();
     playerTransform = GameObject.FindGameObjectWithTag("Player").GetComponent <Transform>();
     //AkSoundEngine.SetRTPCValue("Brick_RTPC", 10);
     //AkSoundEngine.SetRTPCValue("Coeff_RTPC", 50);
     attenuationRange = 30.0f;
 }
Beispiel #4
0
 // Start is called before the first frame update
 void Start()
 {
     gameObject.name = "Radio";
     counter         = 0.0f;
     isOn            = true;
     masterShutOff   = false;
     musicPlaying    = false;
     myID            = -1;
     AkSoundEngine.SetRTPCValue(durationName, durationValue, this.gameObject);
     AkSoundEngine.SetRTPCValue(maxDelayName, maxDelayTime, this.gameObject);
     if (soundLocations == null)
     {
         soundLocations = GameObject.FindGameObjectWithTag("WwiseGlobal").GetComponent <SoundLocations>();
     }
 }