Closed manuelfs12 closed 4 years ago
Thanks for pointing this out! I fixed this a bit differently, since it's generally good practice to only make things public once it becomes necessary, so the learning effect is probably better like this.
Thanks for taking a look at it.
During the tutorial, both of these variables are declared with just the var keyword, later on, when we create the function
checkEnemyVision()
inside the PlayerState class, we get an error because these variables are private in the Enemy class. I changed both variables to be public to match the demo files.