コード例 #1
0
        private void OnEnable()
        {
            _tweenertGroup = (TweenertGroup)target;
            _target        = new SerializedObject(_tweenertGroup);

            _statesInChildrenList = _target.FindProperty("StatesInChildren");
        }
コード例 #2
0
        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;
            }
        }