Change Scale

Hey, how is the code for changing the Scale? Thats my source code but there are stil problems:

void OnCollisionEnter1 (Collision collisionBallRed)

{

if(collisionBallRed.gameObject.tag == “Ball Red”)
{ transform.scale = (transform.scale.x+2); }
}

Thanks Ferdi

OnCollisionEnter1 is never going to get called by the unity engine. The function has to be called “OnCollisionEnter”.

if you need different behaviors depending on what is colliding that needs to be handled inside the function.