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