2020版后的
private void OnCollisionEnter(Collision collision)
{
collision.gameObject.GetComponent<Renderer>().material.color = Color.red;
}
2020版后的
private void OnCollisionEnter(Collision collision)
{
collision.gameObject.GetComponent<Renderer>().material.color = Color.red;
}