新改动

This commit is contained in:
tangbin
2025-07-30 15:22:56 +08:00
parent f88a2e9504
commit 9331a51652
11 changed files with 30 additions and 26 deletions

View File

@@ -17,9 +17,9 @@ public partial class MapManager : MonoBehaviour
//<2F><>ͼ<EFBFBD><CDBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
public const int CELLSCALE = 100;
//<2F><><EFBFBD>ӿ<EFBFBD><D3BF><EFBFBD><EFBFBD><EFBFBD>
public const int widthPixel = 64;
public const int widthPixel = 60;
//<2F><><EFBFBD>Ӹ<EFBFBD><D3B8><EFBFBD><EFBFBD><EFBFBD>
public const int heightPixel = 32;
public const int heightPixel = 40;
//<2F><><EFBFBD>ŵ<EFBFBD>ͼ<EFBFBD><CDBC><EFBFBD><EFBFBD>
public int PicMapPixel => int.Parse(mapPic.text);
@@ -55,7 +55,10 @@ public partial class MapManager : MonoBehaviour
private int _cellCols;
//public CellNode[,] cellNodes;
public int _curOpenMapId;
public int _curOpenMapId {
get;
set;
}
private Material _cellMoveMat;
private Material _cellObsMat;

View File

@@ -73,6 +73,10 @@ public class SceneArea : MonoBehaviour
if (obj == null) return null;
GameObject cellObj = GameObject.Instantiate(obj,parentTrans);
var area = cellObj.GetComponent<SceneArea>();
if (area == null)
{
Debug.LogError($" {obj.name} <20><><EFBFBD><EFBFBD>...");
}
area.editCellType = baseItem.editCellType;
area.baseItem = baseItem;
baseItem.sceneArea = area;