I’m wondering if this very simple “move” function should be static, and if so, are there any limitations or reasons why it shouldn’t be? I’m preferring static, because I’m calling this from several scripts, and it’d be nice to not have to reference a component instance each time.
var boxTransform:Transform;
function MoveBox(pos:Vector3){
boxTransform.position = pos;
}
vs
static var boxTransform:Transform;
static function MoveBox(pos:Vector3){
boxTransform.position = pos;
}