// Can INIT our param public void setParamValue(int value, ref FMOD.EventParameter evtParam) { evtParam.setValue(value); }
public void SetEvent(FMOD.Event evt) { FMOD.RESULT result = FMOD.RESULT.OK; FMOD.EventParameter param = null; hideFlags = HideFlags.HideInInspector | HideFlags.HideInHierarchy; if (m_parameter != null) { result = evt.getParameter(m_parameter.getName(), ref param); ERRCHECK(result); if (result == FMOD.RESULT.OK) { m_runtimeParam = param; result = m_runtimeParam.setValue(m_value); ERRCHECK(result); } } else { Debug.Log ("Error: This component should not exist now if its parameter is null"); } }
// Update The current Event public void update(float value, ref FMOD.EventParameter evtParam) { evtParam.setValue(value); }