static public void CreatUIRoot() { GameObject root = GameObject.Instantiate(AssetLoad.LoadUI("UIRoot")) as GameObject; GameObject.DontDestroyOnLoad(root); root.name = "UIRoot"; }
private void LoadResource() { string temp = this.GetType().Name; string prefabName = StringUtil.StringBuild("Win_", temp.Substring(0, temp.Length - 3)); panel = GameObject.Instantiate(AssetLoad.LoadUI(prefabName)) as GameObject; panel.name = temp; }
public static void CreateUIRoot() { GameObject go = Instantiate(AssetLoad.LoadUI("UIRoot")); go.name = "UIRoot"; }
public static void LoadUI(string name) { g_AssetLoad.LoadUI(name); }