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); }
void OnEnable() { if (_customLayout == null) { _customLayout = GetComponent <CustomLayoutBase>(); } _inStateSet = _outStateSet = true; _inScalar = 1; _outScalar = 0; }