Version: 2017.3
Removed

GameObject.rigidbody

Cambiar al Manual
Obsolete public Component rigidbody ;

Descripción

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

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { public GameObject other; public Rigidbody rb = other.GetComponent<Rigidbody>(); void Example() { rb.AddForce(1, 1, 1); } }