Getting error Unexpected symbol if

//移動量計算 - X軸
if( (startXpos - currentXpos) < (Screen.width * -0.05f) ){
//右を入力
variableManage.movingXaxis = -1;
}else if( (startXpos - currentXpos) > (Screen.width * 0.05f) ){
//左を入力
variableManage.movingXaxis = 1;
}else{
//0入力
variableManage.movingXaxis = 0;
}
//移動量計算 - Y軸
if( (startpos - currentYpos) < (Screen.hight * -0.08f) ){
//上を入力
variableManage.movingYaxis = 1;
}else if( (startYpos - currentYpos) > (Screen.hight * 0.08f) ){
//下を入力
variableManage.movingYaxis = -1;
}else{
//0入力
variableManage.movingYaxis = 0;
}
//コンフィング表示用ボタン
public void configToggle{

It appears as if your if block is not inside a method or the method is not closed. Likely the first as I believe you would be getting a different error if it was not closed. The definition of configToggle would be a part of that method since there is no closing bracket for a method prior to the configToggle definition and as such would likely throw yet a different error.