public static T GetComponent <T>(this AObjectBase aObjectBase) where T : AObjectBase { if (aObjectBase == null) { return(null); } return(LccViewFactory.GetView <T>(aObjectBase.gameObject)); }
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)); }