/// <summary> /// Hover /// </summary> /// <param name="display"></param> /// <param name="handler"></param> /// <param name="arg"></param> /// <returns></returns> public static UIEventListener.BoolDelegate AddHover(DisplayObj display, Action <object, bool> handler, object arg = null) { return(AddHover(display.go, handler, arg)); }
/// <summary> /// DoubleClick /// </summary> /// <param name="go"></param> /// <param name="handler"></param> /// <param name="arg"></param> /// <returns></returns> public static UIEventListener.VoidDelegate AddDoubleClick(DisplayObj display, Action <object> handler, object arg = null) { return(AddDoubleClick(display.go, handler, arg)); }
public static void SetDisplayObj(this GameObject go, ref DisplayObj disObj) { DisplayBehaviour vo = go.GetComponent <DisplayBehaviour>() ?? go.AddComponent <DisplayBehaviour>(); vo.disObj = disObj; }