I tried to set coordinates (0,0) in the inspector(Path Finder Script) result was:
and if I set to coordinates (2, 0)
Probably more experienced people could solve this very quickly. But It was hard to find for me. I couldn’t even know how to trigger this exception.
- I tried to compare my script to Garry’s script. Everything was same
- I tried to compared other scripts.
- Then I replaced my tiles again (because I had mistake before but haven’t fixed it yet).
- I tried to factory reset to my pc, cleaned to house, changed to my phone number but none of these worked.
Then, I changed to value of Grid Size in inspector with bigger number like (50, 50) (It was 2,1 before) problem solved. Gary didn’t trigger this exception. I guess that’s because he set Grid Size values to (4 , 2) in Dictionaries lesson (at 09:40) and checked (0,0) and (2,1) coordinates in PathFinder.
GridSize = (0, 0) & PathFinder Coordinates = (2, 0) → No Exception
GridSize = (2, 1) & PathFinder Coordinates = (2, 0) → Exception
GridSize = (2, 2) & PathFinder Coordinates = (2, 0) → Exception
What’s going on in here actually?