11 lines
238 B
C#
11 lines
238 B
C#
using System;
|
|
using UnityEngine;
|
|
|
|
public class ZeroSleepThreshold : MonoBehaviour
|
|
{
|
|
private void Awake()
|
|
{
|
|
var component = GetComponent<Rigidbody>();
|
|
if (component != null) component.sleepThreshold = 0f;
|
|
}
|
|
} |