Try this. And let me know if it worked. I've only been scripting for a week but I have something similar.
----------
public void OnTriggerEnter(Collider col){
if(col.gameObject.tag == "Playerrr")
col.gameObject.SendMessage("CellPickup")
Destroy(gameObject);
----------
I think you just need to make it public if your accessing an object that the script isn't attached to and get rid of the semicolons and the 2 brackets starting after the if function and at the end of the function.
↧