Dev/ScriptableObjectsRefactor #4

Merged
Stedd merged 17 commits from Dev/ScriptableObjectsRefactor into master 2024-10-05 17:34:01 +02:00
1 changed files with 2 additions and 0 deletions
Showing only changes of commit 1719b56d8a - Show all commits

View File

@ -36,6 +36,8 @@ namespace AsteroidGame.Entities
public bool FindTarget() public bool FindTarget()
{ {
if (_activeTargetable == null || _activeTargetable.Count == 0) return false;
var currentBestValue = Mathf.Infinity; var currentBestValue = Mathf.Infinity;
var targetFound = false; var targetFound = false;