NLDClient-yudde/ProjectNLD/Assets/Code/Scripts/Gameplay/Camp/CampUnit/BuildingCampUnit.cs

35 lines
740 B
C#
Raw Normal View History

2024-12-11 14:07:44 +08:00
using cfg.CampCfg;
using System.Collections;
using System.Collections.Generic;
2024-12-11 15:37:18 +08:00
using TGS;
2024-12-11 14:07:44 +08:00
using UnityEngine;
namespace Gameplay.Camp
{
/// <summary>
/// 建筑营地单位
/// </summary>
public class BuildingCampUnit : CampUnitBase
{
/// <summary>
/// 配置
/// </summary>
public DataCampObject Cfg { get; private set; }
/// <summary>
/// 占用地格索引
/// </summary>
2024-12-11 17:04:41 +08:00
public int CellIndex { get; set; }
2024-12-11 14:07:44 +08:00
public BuildingCampUnit(GameObject root, DataCampObject cfg) : base(root)
{
Cfg = cfg;
}
public override void Dispose()
{
Cfg = null;
base.Dispose();
}
}
}