(client) fix:发现资源文件夹少了个s
This commit is contained in:
@ -271,7 +271,7 @@ namespace Configs
|
||||
|
||||
// 加载指定路径下的所有资源
|
||||
T[] resources = Resources.LoadAll<T>(path);
|
||||
|
||||
|
||||
foreach (T resource in resources)
|
||||
{
|
||||
if (resource != null)
|
||||
|
@ -1,3 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Tilemaps;
|
||||
|
||||
@ -7,9 +8,12 @@ namespace Map
|
||||
{
|
||||
public Tilemap dataLevel;
|
||||
public Tilemap textureLevel;
|
||||
|
||||
public Dictionary<string, TileBase> tileDict = new();
|
||||
void Start()
|
||||
{
|
||||
|
||||
tileDict = Configs.ConfigProcessor.LoadResources<TileBase>("TileMap");
|
||||
Debug.Log(tileDict.Count);
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
|
Reference in New Issue
Block a user