"JavaScript Basics (Retired)" was retired on March 27, 2020.

Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Game Development Object-Oriented Programming in Unity Inheritance The MonoBehaviour Class

Thomas Beaudry
Thomas Beaudry
29,084 Points

After downloading the zip file and opening up in Unity, this is an old file some objects are obsolete.

What should I use in place of the deprecated "Collider" property for the "Object Oriented in Unity" course. The "Hose" script to be exact?

var col = m_CollisionEvents[i].collider; // 'collider' property is deprecated

Thank you for your help guys :)

3 Answers

jason chan
jason chan
31,009 Points

Please download the old version of unity to follow along with the tutorials here at treehouse

https://unity3d.com/get-unity/download/archive

Thank you, sorry for the inconvenience.

Thomas Beaudry
Thomas Beaudry
29,084 Points

OK, Thank you for the info :) I thought of installing the older version also but sort of got side tracked with Nick's other project "How to make a video Game", Perhpas I will resume it at a later time...Thanks so much for your response!

Greg Austin
Greg Austin
10,890 Points

which version should we download?

Nick Pettit
STAFF
Nick Pettit
Treehouse Teacher

Hi Thomas,

Thanks for posting this. I've been working diligently to update many of our existing Unity courses, but I obviously missed this. I'll make a note to address this in a future update.

Thomas Beaudry
Thomas Beaudry
29,084 Points

That's fine, your courses are truly amazing...thank you for making them all! :)

Daniel González
Daniel González
691 Points

would you at least tell us which version to download?

I'd also appreciate it if you could update the project for the latest version :)