static void InjectUnityEngineObject <T>(IObjectResolver resolver, T instance) where T : UnityEngine.Object
 {
     if (instance is GameObject gameObject)
     {
         resolver.InjectGameObject(gameObject);
     }
     else
     {
         resolver.Inject(instance);
     }
 }