NLDClient-yudde/ProjectNLD/Assets/Code/Scripts/Gameplay/Area/BoardView/BoardViewData.cs

21 lines
580 B
C#

using System.Collections.Generic;
using Gameplay.Level;
using UnityEngine;
namespace Gameplay.Area.BoardView
{
public class BoardViewData
{
public TGS.Territory tgsTerritory;
public GameObject borderObj;
public List<int> cellIndexList = new List<int>();
public void Destroy()
{
var tgsMap = LevelManager.Instance.CurrentLevel.Map.TerrainGridSystem;
var tIndex = tgsMap.TerritoryGetIndex(tgsTerritory);
tgsMap.TerritoryDestroy(tIndex);
Object.Destroy(borderObj);
}
}
}