/// <summary> /// Finds all <see cref="MonoBehaviour"/> instances in the scene that are assignable to <typeparamref name="TContract"/> and registers them with the container. /// </summary> /// <param name="container">The container to register with.</param> /// <typeparam name="TContract">The type of the contract to discover on behaviours in the scene.</typeparam> public static void AutoBindToAllInScene <TContract>(this DiContainer container) { container.AutoBindToAllInScene(typeof(TContract)); }