C# C# Objects Encapsulation and Arrays Ternary If

4 Answers

Steven Parker
Steven Parker
177,536 Points

It looks like you have two issues (causing 3 errors):

  • In "Game.cs" on line 13 "path" should be an array instead of a single object ("Maplocation[] path")
  • in "Path.cs" on line 12 "pathstep" needs a capital "S" ("pathStep")
Tojo Alex
PRO
Tojo Alex
Pro Student 13,331 Points

thanks though this gives me about 10 errors in the game.cs script : https://w.trhou.se/tyeg0ho1pq

Steven Parker
Steven Parker
177,536 Points

When editing Game.cs, on line 13 you apparently added a backtick and a pair of braces instead of a pair of brackets.

Once you fix that, all those errors will go away.

Steven Parker
Steven Parker
177,536 Points

You removed the back-tick, but you still have braces {} instead of brackets [].