Why do some variables not reset after pushing the reset button?


1 2 3 4 5 6 7 8 9 10 11 12 | public static int Number; public myWorld() { // Create a new world with 600x400 cells with a cell size of 1x1 pixels. super ( 600 , 400 , 1 ); resetStaticVariables(); } private void resetStaticVariables() { //then you just set your static variables to the value you want them to start at. Number = 10 ; } |