I cant seem to add a component to an object using a variable as the object reference which I get using a raycast but it could be any way as Ive tried other methods. If I just refeerence the object directly it works fine but thats no use in what I require. Is this a bug or am I missing a something?