public override void GetPaths()
        {
            base.GetPaths();

            this.TabView = this.GetComponent <TabView>();
            if (this.TabView != null)
            {
                var rViewModelProps = new List <BindableMember <PropertyInfo> >(
                    DataBindingTypeResolve.GetListViewModelProperties(this.gameObject));
                this.ModelPaths = DataBindingTypeResolve.GetAllViewModelPaths(rViewModelProps).ToArray();

                if (string.IsNullOrEmpty(this.ViewModelPath))
                {
                    this.ViewModelPath = this.ModelPaths.Length > 0 ? this.ModelPaths[0] : "";
                }
            }
        }
Exemplo n.º 2
0
        private void OnTabValueChanged(bool bValue)
        {
            if (this.TabContents != null)
            {
                for (int i = 0; i < this.TabContents.Count; i++)
                {
                    this.TabContents[i].SetActive(bValue);
                }
            }
            if (this.DeactiveTabContents != null)
            {
                for (int i = 0; i < this.DeactiveTabContents.Count; i++)
                {
                    this.DeactiveTabContents[i].SetActive(!bValue);
                }
            }
            TabView rTabView = this.group as TabView;

            if (rTabView != null && bValue)
            {
                rTabView.OnTabChanged(this);
            }
        }