Hello Brian.
I’m following your tuto in the GitHub and since the inventory chapter 22,
strangly everything goes fine ![]()
I’m in the 25th lesson and I had an error message in virtual studio according CurrentTarget.
Cannot use property or indexer ‘RangeFinder.CurrentTarget’ in this context because the setter is not accessible
In your script at this step the CurrentTarget is in private set so if I understand well, unreachable from elsewhere.
I fixed that by passing protected rather than private in the RangeFinder’‘s script.
Before:
public T CurrentTarget { get; private set; }
After:
public T CurrentTarget { get; protected set; }
Have a nice day.
François