Following along the lecture, I thought that Rick may have cached GetComponent<Movement>()
at the beginning of the script, but that didn’t happen.
Shouldn’t we be caching references (am I using “reference” here right?) at the start? I recreated the void Start()
method and placed movement = GetComponent<Movement>();
there. Is that the standard place to put all cached references or could I get away with placing movement = GetComponent<Movement>();
within void OnCollisionEnter(Collision other)
?
I’m quite new to all of this, so any help/advice would be greatly appreciated