Dev/ScriptableObjectsRefactor #4

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

View File

@ -46,7 +46,7 @@ namespace AsteroidGame.Entities
private void Update() private void Update()
{ {
if (Targeter.FindTarget()) if (Targeter.FoundTarget())
{ {
foreach (var weapon in Weapons) foreach (var weapon in Weapons)
{ {

View File

@ -34,7 +34,7 @@ namespace AsteroidGame.Entities
return TargetEntity; return TargetEntity;
} }
public bool FindTarget() public bool FoundTarget()
{ {
if (_activeTargetable == null || _activeTargetable.Count == 0) return false; if (_activeTargetable == null || _activeTargetable.Count == 0) return false;

View File

@ -34,7 +34,7 @@ namespace AsteroidGame.Entities
private void Update() private void Update()
{ {
if (Targeter.FindTarget()) if (Targeter.FoundTarget())
{ {
foreach (var weapon in Weapons) foreach (var weapon in Weapons)
{ {