void Init() { { string strPrefab = "Common/Prefab/MoreApp/UIMoreAppController"; GameObject obj = PrefabCache.main.Load(strPrefab); uiMoreAppPrefab = obj.GetComponent <UIMoreAppController>(); } }
public void CreateUI() { uiMoreApp = (UIMoreAppController)GameObject.Instantiate(uiMoreAppPrefab); uiMoreApp.SetController(this); ViewControllerManager.ClonePrefabRectTransform(uiMoreAppPrefab.gameObject, uiMoreApp.gameObject); }