Example #1
0
        void Start()
        {
            if (target == null)
            {
                Debug.LogError("Target DataContext is null", this);
                return;
            }

            var owner = BindingUtility.FindDataContext(transform);

            if (ReferenceEquals(owner, target))
            {
                Debug.LogError("Invalid target");
                return;
            }

            CreateBinding();
        }