public static void DoKeyCodeDelegate(KeyCodeDelegate func, GameObject arg, KeyCode key) { try { func(arg, key); } catch (Exception ex) { //TopTip.addTip(a.Method.Name + "执行出错" + ex.ToString()); FuncUtil.ShowError(func.Method.Name + "执行出错" + ex.ToString()); } }
public void Clear() { onSubmit = null; onClick = null; onDoubleClick = null; onHover = null; onPress = null; onSelect = null; onScroll = null; onDragStart = null; onDrag = null; onDragOver = null; onDragOut = null; onDragEnd = null; onDrop = null; onKey = null; onTooltip = null; }