Version: 2017.2
Removed

GameObject.collider

Switch to Manual
Obsolete public Component collider ;

Description

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

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { public GameObject other; void Example() { other.collider.material.dynamicFriction = 1; } }