You can solve this with a Java label:
OuterLoop:
while(!(objecFound)){
for(int i = 0; i <= currObsTile.length; i++){
if(currObsTile[i].tile == endTile){
//If this is true, it needs to stop the while loop
break OuterLoop;
}
}
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…