void CheckWinState() { gameItems = GameObject.FindGameObjectsWithTag("PickUp"); //If all pick up items are inactive, change the scene if (gameItems.Length == 0) { //Save game data saveData.setSceneIndex(4); SaveSystem.instance.SaveGame(saveData); //Load next level LocalData.NextSceneLoader(4); } }//end of CheckWinState