Exemple #1
0
 /// <summary>
 /// Get a JUI on a gameObject
 /// 在gameObject上获取JUI
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="gameObject"></param>
 /// <returns></returns>
 public static JUI GetJUI(this GameObject gameObject)
 {
     return(JBehaviour.GetJBehaviour <JUI>(gameObject));
 }
Exemple #2
0
 /// <summary>
 /// Get a JBehaviour on a gameObject
 /// 在gameObject上获取JBehaviour
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="gameObject"></param>
 /// <returns></returns>
 public static T GetJBehaviour <T>(this GameObject gameObject) where T : JBehaviour
 {
     return(JBehaviour.GetJBehaviour <T>(gameObject));
 }