zxl
/
CTT
forked from Cal/CTT
1
0
Fork 0
CTT/Server/Model/Game/Entity/Combat.cs

18 lines
361 B
C#
Raw Normal View History

2021-04-08 20:09:59 +08:00
using System;
using System.Collections.Generic;
namespace ET
{
public class Combat : Entity
{
List<ICombatBounds> _sources;
public List<ICombatBounds> sources => _sources ??= Parent.GetComponents<ICombatBounds>();
public void Destory()
{
_sources?.Clear();
2021-04-08 20:09:59 +08:00
_sources = null;
}
}
}