Last challenge, different method, same result

Hi, as a premise I had never ever seen a line of C# code before last week, when I started this course.
(A month ago I followed a free 10 hours course on Javascript + Html + CSS)

Last challenge was to:


and I think I reached the same results with less lines of code
(else statement at the end of both pages):
(left is my solution, right is instructor’s solution)

this is my result (to the right I have my quiz code pinned as proof it works)

Is that still okay or is mine worse because of something I still don’t know?

Hi,

Good job on developing your own solution. In many cases, there are multiple ways to make something work in Unity. Rick cannot show all of them but that does not mean that other solutions are worse.

Did you test your idea? Does it work? If so, feel free to keep it. :slight_smile:


See also:

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms