In which line are you getting the null reference? Null reference exception means what you are trying to access something that has no reference, so it could be that you have no reference to your GameManager when calling the "nextLevel" method.