26 lines
627 B
C#
26 lines
627 B
C#
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.Serialization;
|
|
|
|
namespace HexGrid
|
|
{
|
|
|
|
[System.Serializable]
|
|
public class HexZone
|
|
{
|
|
//
|
|
public int zoneId;
|
|
public string zoneName;
|
|
public bool isUnlocked;
|
|
// 只渲染边缘即可,暂时保留
|
|
public GameObject zoneObject; // Prefab / 解锁未建的时候构建一下
|
|
public List<HexSubZone> subZones = new();
|
|
public List<HexTile> tiles= new ();
|
|
|
|
public HexTile AddTile(HexTile tile)
|
|
{
|
|
tiles.Add(tile);
|
|
return tile;
|
|
}
|
|
}
|
|
} |