Flag class with members isTrackable and isInvincible(commented out for now).
Can we assume that all gameobjects with Team components also have Flag components? Then can just exclude gamebjects that are not trackable within the lambda statement that gets gameobjects within range (line 41). Otherwise I run into issues where I am getting the Flag component from gameobjects which do not have a Flag component.
Or can add logic in line 41 to exclude gameobjects that do not have Flag. And then check if the remaining gameobjects are trackable
59
Flag class with members isTrackable and isInvincible(commented out for now).
Can we assume that all gameobjects with Team components also have Flag components? Then can just exclude gamebjects that are not trackable within the lambda statement that gets gameobjects within range (line 41). Otherwise I run into issues where I am getting the Flag component from gameobjects which do not have a Flag component.
Or can add logic in line 41 to exclude gameobjects that do not have Flag. And then check if the remaining gameobjects are trackable