Ejemplo n.º 1
0
 public AssetPool()
 {
     _Test                = new AssetSpawnPool("Npc");
     _Test.AssetPath      = "prefabs/";
     _Test.IsUsePool      = true;
     _Test.IsAsynchLoad   = true;
     _Test.AssetExtension = ".prefab";
 }
Ejemplo n.º 2
0
    public AssetPool()
    {
        _Build              = new AssetSpawnPool("Building");
        _Build.AssetPath    = "AllAssets/Prefab/Building/";
        _Build.IsUsePool    = false;
        _Build.IsAsynchLoad = true;
        _Build.Extension    = ".prefab";

        _Common              = new AssetSpawnPool("Common");
        _Common.AssetPath    = "";
        _Common.IsUsePool    = false;
        _Common.IsAsynchLoad = true;

        _Scene              = new AssetSpawnPool("Scene");
        _Scene.AssetPath    = "Scene/";
        _Scene.IsUsePool    = false;
        _Scene.IsAsynchLoad = true;
        _Scene.Extension    = ".unity";

        _TableData              = new AssetSpawnPool("Table");
        _TableData.AssetPath    = "AllAssets/Table/";
        _TableData.IsUsePool    = false;
        _TableData.IsAsynchLoad = true;
        _TableData.Extension    = ".txt";

        _Npc              = new AssetSpawnPool("Npc");
        _Npc.AssetPath    = "AllAssets/Prefab/NPC/";
        _Npc.IsUsePool    = false;
        _Npc.IsAsynchLoad = true;
        _Npc.Extension    = ".prefab";

        _UI              = new AssetSpawnPool("UI");
        _UI.AssetPath    = "AllAssets/Prefab/UI/";
        _UI.IsUsePool    = false;
        _UI.IsAsynchLoad = true;
        _UI.Extension    = ".prefab";

        _UITexture              = new AssetSpawnPool("UITexture");
        _UITexture.AssetPath    = "AllAssets/SpritePackage/";
        _UITexture.IsUsePool    = false;
        _UITexture.IsAsynchLoad = true;
        _UITexture.Extension    = ".png";
    }