23 lines
579 B
C#
23 lines
579 B
C#
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.Serialization;
|
|
|
|
// 状态的存储用的是PlayFab 吗?
|
|
namespace HexGrid
|
|
{
|
|
[CreateAssetMenu(fileName = "HexGridMap", menuName = "ScriptableObjects/HexMap")]
|
|
public class HexGridMap:ScriptableObject
|
|
{
|
|
public int width = 10;
|
|
public int height = 10;
|
|
//
|
|
public List<HexBuilding> buildings = new();
|
|
public List<HexZone> zones = new();
|
|
//
|
|
public void Clear()
|
|
{
|
|
buildings.Clear();
|
|
zones.Clear();
|
|
}
|
|
}
|
|
} |