How do I change an object's scale in code?

Hi. I am making a game where if the player collides with a certain object they’re scale will change. How can I do this? Here’s how I set up the if statement: Now how can I change the scale of the player within that if statement?

using UnityEngine;
using System.Collections;

public class GetLonger : MonoBehaviour {

	void OnCollisionEnter(Collision col){
		if(col.gameObject.name == "Biggerer"{

		}
	}
}

transform.localScale is what you’re looking for, just take the current and add in whatever you want through a Vector3.

using UnityEngine;
using System.Collections;
 
public class GetLonger : MonoBehaviour {
 
    void OnCollisionEnter(Collision col){
        if(col.gameObject.name == "Biggerer"{
            col.gameObject.transform.localScale += new Vector3(1, 0, 1);
        }
    }
}