mirror of
https://github.com/photonstorm/phaser
synced 2025-01-23 10:25:09 +00:00
24 lines
516 B
JavaScript
24 lines
516 B
JavaScript
var LoadValues = function ()
|
|
{
|
|
var tweenData = this.currentTweenData;
|
|
|
|
if (tweenData.startValue === null)
|
|
{
|
|
this.start = this.target[this.key];
|
|
this.end = this.currentTweenData.value();
|
|
|
|
tweenData.startValue = this.start;
|
|
tweenData.endValue = this.end;
|
|
}
|
|
else
|
|
{
|
|
this.start = tweenData.startValue;
|
|
this.end = tweenData.endValue;
|
|
}
|
|
|
|
this.current = this.start;
|
|
|
|
this.target[this.key] = this.start;
|
|
};
|
|
|
|
module.exports = LoadValues;
|