Hello everyone,
I’ve paused the course during few wekks and everything work fine but when I have restarted the course, i’ve notice some strange behavior when i pressed play button.
The first one is that my first unit isn’t selected at the start of the game.
If I selected it, my actions button appear and work fine.
The same if i selected the second unit, coming back again to the first.
The heaven on earth
But when I stop the play mod and restart it to test again, my first unit isn’t always selected but my actions button don’t appear too…
I can only move and switch between the two units…
I’ve noticed the selected cirlce has desapeared too…
there is only the distance quad leave…
I’ve some error message according null reference exception.
I know it happens when you forget to put a gameObject or other thing in a field but after checking I don’t notice any missing…
So I’ve decide to tweak a little bit the code code to work by elimination and only changed the name of the UpdateSelectedVisual method.
When I rename it “UpdatedSelectedVisual” (i’ve only had a “d” after update), changing at the 3 others lines where it called the method, Ig I save, Unit restart the compilation and when I launch the game,
my first unit isn’t selected, but when I click on it, my action button appear again and “everything” work normally, even if I switch unit.
And if I stop the game and relaunch it, the same problem appear again.
No unit selected by default and no action button…
It looks like if something override something other…
I must say that I’m a little bit lost…
If but my actual project in my google drive, in zip, here:
https://drive.google.com/drive/folders/1LsQ3aV-etlm-VRnY_t8uuozo3hbVBAtQ?usp=sharing
I’ve spend many hour too check code coming back in the course but nothing looks bad.
I haven’t error message in visual studio…
Only missing reference in unity…
Excuse me for the boring but here, I need help if I want to continue…
Thanks a lot, have a good day.
François