Commit 06b168ee authored by haiyoucuv's avatar haiyoucuv

init

parent 4f42e90a
......@@ -85,16 +85,16 @@ export class OverflowBubble extends Container implements IBase {
}
const { id, creditsNum, expireTime } = info;
if (expireTime - Date.now()) {
this.visible = false;
Tween.removeTweens(this.cdTarget);
return;
}
this.id = id;
this.text.text = creditsNum;
this.cdTarget.cd = Math.max((expireTime - Date.now()) / 1000 >> 0, 1);
if (this.cdTarget.cd <= 0) {
this.visible = false;
Tween.removeTweens(this.cdTarget);
return;
}
this.setTime();
Tween.removeTweens(this.cdTarget);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment