Esse timer está funcionando, porém sempre q eu coloco nesse if ele não funciona mais
public void timer(){
if(Game.gameStates == "SITUACAO1"){
int x = 10;
Thread y = new Thread();
try{
while(x > 0){
y.sleep(500);
System.out.println(x);
isTiming = true;
x--;
}
}catch(Exception e){}
}
}