Initial code for rock obstacle.
Switched to using script.instance[xxx] instead of getComponentReference()