Cleaned up obsolete usage warnings for Unity 4

Using preprocessor directives for Unity version 4 and newer, updated
obsolete properties with the current recommended properties and methods.
Obsolete properties included GameObject.active, Camera.mainCamera, and
BoxCollider.extents. Also commented unused private variables responsible
for additional warning messages. Changes do not affect Unity versions
3.5.x.