Example #1
0
 public static T GetComponent <T>(this AObjectBase aObjectBase) where T : AObjectBase
 {
     if (aObjectBase == null)
     {
         return(null);
     }
     return(LccViewFactory.GetView <T>(aObjectBase.gameObject));
 }
Example #2
0
        public static T GetChildComponent <T>(this AObjectBase aObjectBase, params string[] childs) where T : AObjectBase
        {
            GameObject childGameObject = aObjectBase.GetChildGameObject(childs);

            if (childGameObject == null)
            {
                return(null);
            }
            return(LccViewFactory.GetView <T>(childGameObject));
        }