kingBook

导航

2020年8月11日 #

CocosCreator 多个对象权重计算

摘要: //权重对象列表 var weightObjects=[ {weight:100}, {weight:80}, {weight:500} ]; //总权重 var sumWeight=0; for(var i=0;i<weightObjects.length;i++){ sumWeight+=wei 阅读全文

posted @ 2020-08-11 12:14 kingBook 阅读(298) 评论(0) 推荐(0) 编辑