Inheritance: uguimvvm.Primitives.Selector
Beispiel #1
0
        protected override void Awake()
        {
            _image = GetComponent<Image>();
            _tabs = GetComponentInParent<TabControl>();

            if (_active == null)
                _active = spriteState.highlightedSprite;

            onClick.AddListener(OnClick);
        }
Beispiel #2
0
 protected override void OnTransformParentChanged()
 {
     base.OnTransformParentChanged();
     _tabs = GetComponentInParent<TabControl>();
 }