(client) fix:修复定义链接不正确赋值的问题
This commit is contained in:
@ -7,26 +7,29 @@ namespace Map
|
||||
{
|
||||
public class DoubleMap : MonoBehaviour
|
||||
{
|
||||
public Tilemap dataLevel;
|
||||
public List<List<int>> mapData = new();
|
||||
// public Tilemap dataLevel;
|
||||
public Tilemap textureLevel;
|
||||
|
||||
public Dictionary<string, TileBase> tileDict = new();
|
||||
void Start()
|
||||
{
|
||||
tileDict = Configs.ConfigProcessor.LoadResources<TileBase>("TileMap");
|
||||
var tile= tileDict.Values;
|
||||
for (int i = 0; i < 100; i++)
|
||||
{
|
||||
for (int j = 0; j < 100; j++)
|
||||
{
|
||||
textureLevel.SetTile(new(i,j),tile.First());
|
||||
}
|
||||
}
|
||||
TileManager.Instance.Init();
|
||||
}
|
||||
}
|
||||
|
||||
public class TileMappingTable:Utils.Singleton<TileMappingTable>
|
||||
{
|
||||
public void UpdateTexture()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class TileManager:Utils.Singleton<TileManager>
|
||||
{
|
||||
Dictionary<int, TileBase> tileDict = new();
|
||||
public void Init()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user