package com.bn.box2d.sndls; import java.util.ArrayList; import org.jbox2d.dynamics.Body; import static com.bn.box2d.sndls.Constant.*; public class BodySearchUtil { public static void doAction(GameView gv,Body body1,Body body2,ArrayList<MyPolygonImg> bl,float x,float y) { if(gv.hero==null) { return; } Body heroBody=gv.hero.body; for(MyPolygonImg mpi:bl) { if(!START_SCORE) { if(body1==heroBody||body2==heroBody) { START_SCORE=true; } } if(START_SCORE) { if(body1==mpi.body||body2==mpi.body) { mpi.doAction(x,y); } } } } }

快乐的程序员 LV25
2023年1月22日
dasdascccf LV10
2022年6月10日
陌陌丹 LV5
2022年5月9日
2862896879 LV9
2021年10月31日
lqf123 LV9
2021年6月14日
zzccxx LV4
2020年10月20日
aa123456awww LV8
2020年6月13日
13165798872 LV11
2020年2月1日
zipper LV8
2020年1月8日
戎马书生 LV15
2019年12月26日