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");
        }