Esempio n. 1
0
 /// <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));
 }
Esempio n. 2
0
 /// <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));
 }
Esempio n. 3
0
        public static void SetDisplayObj(this GameObject go, ref DisplayObj disObj)
        {
            DisplayBehaviour vo = go.GetComponent <DisplayBehaviour>() ?? go.AddComponent <DisplayBehaviour>();

            vo.disObj = disObj;
        }