NLDClient-yudde/ProjectNLD/Assets/Code/Scripts/Gameplay/LegionBattle/Data/LegionBattleSideData.cs

35 lines
748 B
C#
Raw Normal View History

2025-03-31 15:23:24 +08:00
using UnityEngine;
namespace Gameplay.LegionBattle
{
/// <summary>
/// 军团战边界数据
/// </summary>
public sealed class LegionBattleSideData
{
private GameObject goSide;
private bool isActive;
public bool IsActive
{
get { return isActive; }
set
{
if (isActive == value)
return;
2025-03-31 15:54:24 +08:00
isActive = value;
2025-03-31 15:23:24 +08:00
goSide.SetActive(value);
}
}
public LegionBattleSideData(Vector3 pos, GameObject go)
{
goSide = go;
goSide.transform.position = pos;
2025-03-31 15:54:24 +08:00
isActive = goSide.activeSelf;
IsActive = false;
2025-03-31 15:23:24 +08:00
}
}
}