private void OnEnable() { _tweenertGroup = (TweenertGroup)target; _target = new SerializedObject(_tweenertGroup); _statesInChildrenList = _target.FindProperty("StatesInChildren"); }
private void OnEnable() { _rectt = GetComponent <RectTransform>(); _canvasGroup = GetComponent <CanvasGroup>(); _tweenertGroup = GetComponent <TweenertGroup>(); if (_tweenertGroup == null) { _tweenertGroup = GetComponentInParent <TweenertGroup>(); } if (_tweenertGroup != null) { _tweenertGroup.PropertyChanged += AnimateTransformGroup_PropertyChanged; } }