2025-07-15 15:26:58 +08:00
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Linq;
|
2025-07-12 00:24:28 +08:00
|
|
|
using UnityEngine;
|
|
|
|
using UnityEngine.Tilemaps;
|
|
|
|
|
|
|
|
namespace Map
|
|
|
|
{
|
|
|
|
public class DoubleMap : MonoBehaviour
|
|
|
|
{
|
2025-07-16 15:57:13 +08:00
|
|
|
public List<List<int>> mapData = new();
|
|
|
|
// public Tilemap dataLevel;
|
2025-07-12 00:24:28 +08:00
|
|
|
public Tilemap textureLevel;
|
2025-07-15 15:26:58 +08:00
|
|
|
|
|
|
|
public Dictionary<string, TileBase> tileDict = new();
|
2025-07-12 00:24:28 +08:00
|
|
|
void Start()
|
|
|
|
{
|
2025-07-16 15:57:13 +08:00
|
|
|
TileManager.Instance.Init();
|
2025-07-12 00:24:28 +08:00
|
|
|
}
|
2025-07-16 15:57:13 +08:00
|
|
|
|
|
|
|
public void UpdateTexture()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2025-07-15 15:26:58 +08:00
|
|
|
}
|
2025-07-12 00:24:28 +08:00
|
|
|
|
2025-07-16 15:57:13 +08:00
|
|
|
public class TileManager:Utils.Singleton<TileManager>
|
2025-07-15 15:26:58 +08:00
|
|
|
{
|
2025-07-16 15:57:13 +08:00
|
|
|
Dictionary<int, TileBase> tileDict = new();
|
|
|
|
public void Init()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
2025-07-12 00:24:28 +08:00
|
|
|
}
|
|
|
|
}
|