备份CatanBuilding瘦身独立工程
This commit is contained in:
26
Assets/Scripts/HexGrid/Data/HexZone.cs
Normal file
26
Assets/Scripts/HexGrid/Data/HexZone.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user