using UnityEngine; namespace KitsuneCafe.Extension { public static class GameObjectExtensions { public static bool TryGetComponentIfNull(this Component gameObject, ref T component) { if (component == null) { return gameObject.TryGetComponent(out component); } return false; } } }