35 lines
740 B
C#
35 lines
740 B
C#
using cfg.CampCfg;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using TGS;
|
|
using UnityEngine;
|
|
|
|
namespace Gameplay.Camp
|
|
{
|
|
/// <summary>
|
|
/// 建筑营地单位
|
|
/// </summary>
|
|
public class BuildingCampUnit : CampUnitBase
|
|
{
|
|
/// <summary>
|
|
/// 配置
|
|
/// </summary>
|
|
public DataCampObject Cfg { get; private set; }
|
|
/// <summary>
|
|
/// 占用地格索引
|
|
/// </summary>
|
|
public int CellIndex { get; set; }
|
|
|
|
public BuildingCampUnit(GameObject root, DataCampObject cfg) : base(root)
|
|
{
|
|
Cfg = cfg;
|
|
}
|
|
|
|
public override void Dispose()
|
|
{
|
|
Cfg = null;
|
|
|
|
base.Dispose();
|
|
}
|
|
}
|
|
} |