public boolean onKeyBackEvent()
{
//如果当前的当前处于机舱门关闭的状态,那么按下返回键,机舱门打开
if(!isGameOn&&1==isMenuLevel&&doorState==2)
{
doorState=0;
return true;
}
if(!isGameOn&&isMenuLevel==2)
{
isMenuLevel=1;
missile_ZOffset=missile_ZOffset_Ori;
missile_ZOffset_Speed=0;
return true;
}
if(!isGameOn&&isMenuLevel==3)
{
isMenuLevel=2;
return true;
}
//如果当前处于开仓状态,并且当前的菜单索引号不是5,那么要旋转到5,即旋转到退出按钮处
if(!isGameOn&&1==isMenuLevel&&(doorState==1)&&(curr_menu_index!=5)&&!isMissileDowning)
{
moveToExit=true;//标志位设为true
}
return true;
}