Files
esengine/source/src/Tween/Interfaces/ITweenControl.ts

25 lines
968 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
module es {
/**
* 更多具体的Tween播放控制在这里
*/
export interface ITweenControl extends ITweenable {
readonly discriminator: "ITweenControl";
/**
* 当使用匿名方法时,您可以在任何回调(如完成处理程序)中使用该属性来避免分配
*/
context;
/**
* 将tween扭曲为elapsedTime并将其限制在0和duration之间无论tween对象是暂停、完成还是运行都会立即更新
* @param elapsedTime 所用时间
*/
jumpToElapsedTime(elapsedTime: number);
/**
* 当从StartCoroutine调用时它将直到tween完成
*/
waitForCompletion(): any;
/**
* 获取tween的目标如果TweenTargets不一定都是一个对象则为null它的唯一真正用途是让TweenManager按目标查找tweens的列表
*/
getTargetObject(): any;
}
}