Added debug message is runtime set does not exist
This commit is contained in:
parent
c81a750f2f
commit
813d034fc5
|
@ -18,9 +18,16 @@ namespace GameDev.CoreSystems
|
|||
[field: SerializeField] public Collider Collider { get; private set; }
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
if (_activeTargetableRuntimeSet != null)
|
||||
{
|
||||
_activeTargetableRuntimeSet.Add(this);
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogError("TargetableRuntimeSet does not exist");
|
||||
}
|
||||
}
|
||||
|
||||
private void OnDisable()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue