Version: 2018.1
Obsolete public Component collider ;

Description

Прикрепленный Collider к данному GameObject'у (Read Only). (null, если компонент не прикреплен).

Obsolete. Use GetComponent<Collider>() instead.

using UnityEngine;

public class Example : MonoBehaviour { void Start() { GetComponent<Collider>().material.dynamicFriction = 1f; } }