public UIComponent() { _cache = new RepositoryComponent <BaseView, Transform>(); Canvas = GameObject.Find("Canvas").transform; }
private static RepositoryComponent <string, BaseComponent> _cache; //仓储组件 #endregion #region ctor /// <summary> /// 构造世界获取器 /// </summary> static World() { _cache = new RepositoryComponent <string, BaseComponent>(); }