Пример #1
0
 public static void UnRegisterBinding(DataBindingBase binding)
 {
     if (BindingComponents.ContainsKey(binding))
     {
         BindingComponents.Remove(binding);
     }
 }
Пример #2
0
 public static void RegisterBinding(DataBindingBase binding)
 {
     BindingComponents[binding] = GetPathStringOfBinding(binding.gameObject, binding);
 }
Пример #3
0
 public static string GetPathStringOfBinding(GameObject go, DataBindingBase binding = null)
 {
     return($"{go.scene.path}{go.GetPathInScene()}/{binding?.GetType().Name}");
 }