Hello i want make UISlider volume changing but two error;
My script;
using UnityEngine;
using System.Collections;
public class VolumeOption : MonoBehaviour {
void Start ()
{
UISlider _Volumeslider = GetComponent<UISlider>();
_Volumeslider.sliderValue = AudioListener.volume;
EventDelegate.Add(_Volumeslider.onChange,OnToggleChange);
}
void OnToggleChange (float val)
{
AudioListener.volume = val;
}
}
ERRORS;
Assets/ScriptOther/VolumeOption.cs(11,31): error CS1502: The best overloaded method match for `EventDelegate.Add(System.Collections.Generic.List<EventDelegate>, EventDelegate)' has some invalid arguments
Assets/ScriptOther/VolumeOption.cs(11,31): error CS1503: Argument `#2' cannot convert `method group' expression to type `EventDelegate'
How to fix? Thanks in advance.

(Sorry for bad english.)