using System; using UnityEngine; namespace ET { public static class UILoadingFactory { public static UI Create(Entity domain) { try { GameObject bundleGameObject = ((GameObject)Resources.Load("KV")).Get(UIType.UILoading); GameObject go = UnityEngine.Object.Instantiate(bundleGameObject); go.layer = LayerMask.NameToLayer(LayerNames.UI); UI ui = EntityFactory.Create(domain, UIType.UILoading, go); ui.AddComponent(); return ui; } catch (Exception e) { Log.Error(e); return null; } } public static void Remove(string type) { } } }