in unity 2d how to test to see if a scene opens code example Example: unity how to get the current scene SceneManager.GetActiveScene().buildIndex;