コード例 #1
0
        protected TweenBase(SceneTime time, EasingType type, float duration, float startValue, float finishValue, Action finishCallback)
        {
            Assert.NotNull(time);

            _time           = time;
            _startTime      = time.CurrentFloat;
            _current        = 0;
            _duration       = duration;
            _finishTime     = _duration + _startTime;
            _function       = EasingFunctions.Get(type);
            _state          = TweenState.Working;
            _startValue     = startValue;
            _finishValue    = finishValue;
            _finishCallback = finishCallback;
        }