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