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