public static void AddPrefabToLocationContract(this DiContainer container, IPrefabToLocationContract contract) { Debug.Log($"PrefabToLocation contract for {contract.PrefabType.Name} to anchor with id {contract.LocationProviderType.Name} created"); container.QueueForInject(contract); container.Bind <IPrefabToLocationContract>().FromInstance(contract).AsTransient(); }
public PrefabToLocationBinding(IPrefabToLocationContract contract) { Contract = contract; }