Change size and mass on collision

Hi. I’m new to Unity and game programming. I’ve almost finished my first Unity game but I still need to add one more feature to finilize it. I need your help for that feature. I have a rigidbody player and objects. I want increase player’s size and mass everytime it collides with these objects. How do I handle this on the script side? I’ve been using Unityscript so far.

rigidBody.mass for changing mass, transform.scale for changing scale.

You have almost finished a game and have problems reading the script reference?