private void NewScene() //callable without needed to use scene parameter { floorInfo = FloorInfo.Instance; floorID = floorInfo.GetFloorID(); roomShapes = floorInfo.GetRooms(); floorLayouts = floorInfo.GetLayouts(); doors = floorInfo.GetDoors(); floorLayouts.LoadLayouts(); cameraFollowPlayer = Camera.main.GetComponent <CameraFollowPlayer>(); normalLayouts = floorLayouts.normalLayouts; largeLayouts = floorLayouts.largeLayouts; itemLayouts = floorLayouts.itemLayouts; bossLayouts = floorLayouts.bossLayouts; emptyLayout = floorLayouts.emptyLayout; roomArrSize = roomShapes.Length; rooms.Clear(); roomCount = 0; beatNumber = 0; layouts = new GameObject[][] { normalLayouts, largeLayouts }; Invoke("GetMaxDistance", 0.5f); }