void OnDestroy() { if (inst == this) { inst = null; } }
void Awake() { inst = this; prevTime = Time.realtimeSinceStartup; gameObject.hideFlags = HideFlags.HideInHierarchy; dt = 0f; }