public bool simpleDispatch(string type, object data = null) { if (hasEventListener(type) == false) { return(false); } SAEventX e = SAEventX.FromPool(type, data); bool b = dispatchEvent(e); SAEventX.ToPool(e); return(b); }
private void clickHandle() { if (_enabled == false) { return; } if (hasEventListener(SAEventX.CLICK)) { SAEventX e = SAEventX.FromPool(SAEventX.CLICK); bool b = dispatchEvent(e); SAEventX.ToPool(e); } }