Exercises
Complete the following exercises on your own:
- Alter the
if
statement that checks the monster's position so that the code avoids the error entirely. - Are you able to fix the unassigned reference issue in code? Hint—check out the
GameObject.Find
method. - Write a monster script that moves its block using the keyboard or mouse as input.