Sphere Collider on Enemy doesn't change

Hi , year passed since you posted this video and not all of the features here are still working. Sphere collider on enemy won't change in size  when starting game. Tried to use Detection scene located in course files but stays the same, also tried Update function and still nothing. Ray is working properly.

  • Jonathan Gonzalez(jgonzalez) replied

    If you take a look at the detection scene when you hit play, it's throwing an error because the GameManager has not been created in that scene yet. At the top of the Start method it's looking for that object, and since it can't find it, everything below that line will not be called properly. The changing of the collider size is set at the bottom of that method. 

    You can comment out the GameManager stuff if you do not have that created yet. You could also move that line to the bottom of the Start method below everything else and you should see the sphere collider does change in size after that change. It's included in the script since it's part of the next lesson. I can't save versions of the same script in the project files, so you'll see completed scripts in some lessons. 

    If you take a look at the Exercise_Completed scene you'll see what the end result should look like with everything working properly.