コード例 #1
0
    void selfInit()
    {
        filesPuppet.Clear();


        TextureBlockMgr.InitOnce();
        MeshGroupMgr.InitOnce();

        foreach (var gg in MeshGroupMgr.mapGroupGroup)
        {
            filesPuppet.Add(gg.Key);
        }
        //var _files = System.IO.Directory.GetFiles(System.IO.Path.GetFullPath("."), "*.Puppet.xml", System.IO.SearchOption.AllDirectories);
        //foreach (var f in _files)
        //{
        //    string file = f;
        //    var i = file.ToLower().LastIndexOf("resources");
        //    file = file.Substring(i + "resources".Length + 1);
        //    var i2 = file.LastIndexOf('.');
        //    file = file.Substring(0, i2);   //must be。 remove ext name
        //    file = file.Replace('\\', '/'); //must be。 use / symble
        //    filesPuppet.Add(file);
        //}
        //filesPuppet.AddRange(_files);
    }
コード例 #2
0
    public void RupdateMesh()
    {
        TextureBlockMgr.InitOnce();
        MeshGroupMgr.InitOnce();


        collobj = null;
        if (KAniGenColl)
        {
            ClearKAniColl();
        }
        updateMesh();
    }
コード例 #3
0
    void selfInit(Com_Sprite sprite)
    {
        EditSprite = sprite;
        filesPuppet.Clear();


        TextureBlockMgr.InitOnce();
        MeshGroupMgr.InitOnce();
        foreach (var gg in MeshGroupMgr.mapGroupGroup)
        {
            filesPuppet.Add(gg.Key);
        }
    }