Passing data from one script to another

Please look at this page for posting code on the forums: Using code tags properly
You can edit your post & keep it in mind for future posts… =)

Okay, so my response would be: Create an array (or list) , make it public or use the attribute SerializeField.
Then drag n drop all the rocks that would be triggered by the unique area (of falling rocks).
This will mean instead of 1 Rock_phys you have an array/list of them. (plus, you don’t need to FindObjectOfType, either).

Lastly, just go over the list and do what you’re doing now (on each element of the list or array).

:slight_smile: