public UI Create(Scene scene, string type, GameObject gameobject)
 {
     try
     {
         ResourcesComponent resourcesComponent = ETModel.Game.Scene.GetComponent <ResourcesComponent>();
         resourcesComponent.LoadBundle($"{type}.unity3d");
         GameObject bundleGameObject = (GameObject)resourcesComponent.GetAsset($"{type}.unity3d", $"{type}");
         GameObject go      = UnityEngine.Object.Instantiate(bundleGameObject);
         string     content = GameUtil.GetTip();
         go.layer = LayerMask.NameToLayer(LayerNames.UI);
         UI ui = ComponentFactory.Create <UI, GameObject>(go);
         ui.AddComponent <UIFriendRoomCommonTipComponent, String>(content);
         return(ui);
     }
     catch (Exception e)
     {
         Log.Error(e);
         return(null);
     }
 }