protected override void Awake() { _image = GetComponent<Image>(); _tabs = GetComponentInParent<TabControl>(); if (_active == null) _active = spriteState.highlightedSprite; onClick.AddListener(OnClick); }
protected override void OnTransformParentChanged() { base.OnTransformParentChanged(); _tabs = GetComponentInParent<TabControl>(); }