Obsolete public Component collider ;

Descripción

El Collider adjunto a este GameObject (Lectura solamente). (Null si no hay uno adjunto).

using UnityEngine;
using System.Collections;

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