(Math.random() - 0.5) * 2 * this.node.width/2;
y轴的位置同理
一步一个脚印。
cocos creator 取屏幕随机x轴的位置
最新推荐文章于 2022-12-06 14:38:22 发布
(Math.random() - 0.5) * 2 * this.node.width/2;
y轴的位置同理
一步一个脚印。