/* TODO This comment prevents swiping on the main menu (which would allow player to move into the world select screens) * void Update(){ * UpdateWorldInfo (); * MonitorSwiping (); * } */ //changes position and display of the world info screen to display correct data private void UpdateWorldInfo() { if (worldNumber > 0) { rectTransform.offsetMax = new Vector2(rectTransform.offsetMax.x, (worldNumber * worldGap)); rectTransform.offsetMin = new Vector2(rectTransform.offsetMin.x, (worldNumber * worldGap)); worldInfo.DisplayWorldInfo(LevelDataManager.manager.GetWorldData(worldNumber)); } }