Esempio n. 1
0
        public override void SetInterpolation(float erpPos, bool toIn)
        {
            if (_customLayout == null)
            {
                _customLayout = GetComponent <CustomLayoutBase>();
            }

            _customLayout.LayoutScalar = Mathf.Lerp(toIn ? _outScalar : _inScalar, toIn ? _inScalar : _outScalar, erpPos);
        }
Esempio n. 2
0
        void OnEnable()
        {
            if (_customLayout == null)
            {
                _customLayout = GetComponent <CustomLayoutBase>();
            }

            _inStateSet = _outStateSet = true;
            _inScalar   = 1;
            _outScalar  = 0;
        }