// Start is called before the first frame update void Start() { if (soundLocations == null) { soundLocations = GameObject.FindGameObjectWithTag("WwiseGlobal").GetComponent <SoundLocations>(); } name = "Bullet"; }
// Start is called before the first frame update void Start() { bulletFired = false; shotDead = false; if (soundLocations == null) { soundLocations = GameObject.FindGameObjectWithTag("WwiseGlobal").GetComponent <SoundLocations>(); } }
// 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; }
// 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>(); } }