コード例 #1
0
    static public void CreatUIRoot()
    {
        GameObject root = GameObject.Instantiate(AssetLoad.LoadUI("UIRoot")) as GameObject;

        GameObject.DontDestroyOnLoad(root);
        root.name = "UIRoot";
    }
コード例 #2
0
        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;
        }
コード例 #3
0
    public static void CreateUIRoot()
    {
        GameObject go = Instantiate(AssetLoad.LoadUI("UIRoot"));

        go.name = "UIRoot";
    }
コード例 #4
0
 public static void LoadUI(string name)
 {
     g_AssetLoad.LoadUI(name);
 }