public void UpdateLevel2Event(float progress, float death) { List <SoundManagerParameter> parameters = new List <SoundManagerParameter>(); SoundManagerParameter parameter1 = new SoundManagerParameter("PROGRESS", progress); SoundManagerParameter parameter2 = new SoundManagerParameter("DEATH", death); parameters.Add(parameter1); parameters.Add(parameter2); AudioManager.Instance.UpdateEventParameters(levelMusic2_Event, parameters); }
public void UpdateEventParameter(EventInstance soundEvent, SoundManagerParameter parameter) { soundEvent.setParameterByName(parameter.GetName(), parameter.GetValue()); }