public static IInversedBindings GetInversedBindings(Type type) { IInversedBindings bindings = null; s_InversedBindings.TryGetValue(type, out bindings); return(bindings); }
public static void Register <TComponent>(IInversedBindings <TComponent> inversedBindings) where TComponent : Component { var type = typeof(TComponent); if (s_InversedBindings.ContainsKey(type)) { Debug.LogError($"{UTinyConstants.ApplicationName}: Inversed bindings for class {typeof(TComponent).Name} is already defined."); } else { s_InversedBindings[type] = inversedBindings; } }