Updated unity formatting to what BrendanDickinson had.
Added cache for renderer from GameObject.renderer
Changed "!= true" to "== false"