Version: 5.6
Removed

GameObject.rigidbody

매뉴얼로 전환
Obsolete public Component rigidbody ;

설명

The Rigidbody attached to this GameObject (Read Only). (Null if there is none attached).

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); } }