Пример #1
0
        protected override void OnEnable()
        {
            base.OnEnable();

            _tweenert = GetComponent <Tweenert>();
            _previousSelectedPageInEditor = _provider.InEditorVisiblePage;
        }
Пример #2
0
        private void OnEnable()
        {
            _animateTransform = (Tweenert)target;
            _target           = new SerializedObject(_animateTransform);

            _animateTransformStatesList          = _target.FindProperty("States");
            _animateTransformStatesInParentsList = _target.FindProperty("StatesInParents");
            _animationCurve = _target.FindProperty("AnimationCurve");
            _ignoreInGroup  = _target.FindProperty("IgnoreInGroup");
        }