EventDispatcher.removeEventListner C# (CSharp) Method

removeEventListner() public method

public removeEventListner ( string eventType, CallBack, function ) : void
eventType string
function CallBack,
return void
    public void removeEventListner(string eventType,CallBack function)
    {
        int i=0;
        while(i<_listenList.Count){
            EventListenTerm term = _listenList[i];
            if(term.eventType==eventType && term.function.Equals(function)){
                _listenList.Remove(term);
            }else{
                i++;
            }
        }
    }