fix:ticker回收
This commit is contained in:
parent
a8a715c5a8
commit
907674caf7
@ -2394,7 +2394,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
||||
function drawCommentStr(content, x, y, vx) {
|
||||
if (core.isReplaying() || !Animation) return;
|
||||
const ani = new Animation();
|
||||
core.plugin.aniMap().set(ani, (ani) => ani.ticker.destroy());
|
||||
core.plugin.aniMap.set(ani, (ani) => ani.ticker.destroy());
|
||||
ani.ticker.add(() => {
|
||||
core.fillText(ctxName, content, x + ani.x, y, 'white', '16px Verdana');
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user