using UnityEngine; namespace X.Rendering.Feature { [RequireComponent(typeof(Renderer))] public class HizObject : MonoBehaviour { private void OnEnable() { HizObjectsManager.Instance.Register(GetComponent()); } private void OnDisable() { HizObjectsManager.Instance.UnRegister(GetComponent()); } } }