Dev/ScriptableObjectsRefactor #4
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue