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