Exemple #1
0
 public static void BindPrefabToAnchor <TPrefab, TAnchor>(this DiContainer container)
     where TPrefab : Component
     where TAnchor : class, ILocationProvider
 {
     container.AddPrefabToLocationContract(
         new PrefabToLocationContract(typeof(TPrefab), typeof(TAnchor), true));
 }
Exemple #2
0
 public static void BindPrefabToRoot <TPrefab, TRoot>(this DiContainer container)
     where TPrefab : Component
     where TRoot : class, ILocationProvider
 {
     container.AddPrefabToLocationContract(
         new PrefabToLocationContract(typeof(TPrefab), typeof(TRoot), false));
 }