using UnityEngine; namespace OmiLAXR.Extensions { public static class GameObjectExt { public static T EnsureComponent(this GameObject gameObject) where T : Component => gameObject.GetComponent() ?? gameObject.AddComponent(); } }