我有以下完美运行的代码:
updaterVariable = 0;
Tweener.addTween(this, {time:2, transition:"linear", updaterVariable:1000, onUpdate:tweenerUpdate});
我将在 2 秒内将 updaterVariable 的值从 0 补间到 1000。我的问题是是否有类似的方法来补间数组中的变量,例如:
updaterVariable[10] = 0;
Tweener.addTween(this, {time:2, transition:"linear", updaterVariable[10]:1000, onUpdate:tweenerUpdate});
我尝试了上面的代码,但它不起作用。任何人都可以帮忙吗?