using UnityEngine; public class RigidbodySleep : MonoBehaviour { // Start is called once before the first execution of Update after the MonoBehaviour is created void Start() { Rigidbody rb = GetComponent(); if (rb != null) { rb.Sleep(); } } }