コード例 #1
0
ファイル: UILoadingFactory.cs プロジェクト: youmu256/ET
        public UI Create(Scene scene, UIType type, GameObject gameObject)
        {
            try
            {
                GameObject bundleGameObject = ((GameObject)Resources.Load("KV")).Get <GameObject>("UILoading");
                GameObject go = UnityEngine.Object.Instantiate(bundleGameObject);
                go.layer = LayerMask.NameToLayer(LayerNames.UI);
                UI ui = ComponentFactory.Create <UI, GameObject>(go);

                ui.AddComponent <UILoadingComponent>();
                return(ui);
            }
            catch (Exception e)
            {
                Log.Error(e.ToString());
                return(null);
            }
        }
コード例 #2
0
ファイル: UIComponent.cs プロジェクト: youmu256/ET
 public void Add(UIType type, UI ui)
 {
     this.uis.Add(type, ui);
 }
コード例 #3
0
ファイル: UILoadingFactory.cs プロジェクト: youmu256/ET
 public void Remove(UIType type)
 {
 }