void Awake() { audioTimeofday = GameObject.FindObjectOfType <AudioTimeofday> (); audioPlayerActions = GameObject.FindObjectOfType <AudioPlayerActions> (); audioEventATrigger = GameObject.FindObjectOfType <AudioEventATrigger> (); audioEventBTrigger = GameObject.FindObjectOfType <AudioEventBTrigger> (); material = 1; //Here we instantiate the Fmod-event and associate it with the public string which specifies what event we want to call. FmodFootstepEv = FMODUnity.RuntimeManager.CreateInstance(FmodFootstep); FmodFootstepEv = FMODUnity.RuntimeManager.CreateInstance(FmodBanana); }