void OnInfoClick(GameObject go) { int slot = GetSlot(go); if (slot != -1) { mSelectedSlot = slot; if (SlotInfo.IsDead(slot)) { UIModalConfirm.Open(GameLocalize.GetText("dead_confirm_title"), GameLocalize.GetText("dead_confirm_desc"), delegate(bool yes) { if (yes) { SlotInfo.DeleteData(slot); UserSlotData.DeleteSlot(slot); SlotInfo.CreateSlot(ModalSaveSlots.selectedSlot, SlotInfo.GameMode.Hardcore); SceneState.instance.ResetGlobalValues(); SceneState.instance.ResetValues(); AchievementFixRetroActive(); Main.instance.sceneManager.LoadScene(Scenes.levelSelect); } }); } else { UserSlotData.LoadSlot(slot, true); SlotInfo.LoadCurrentSlotData(); SceneState.instance.ResetGlobalValues(); SceneState.instance.ResetValues(); AchievementFixRetroActive(); Main.instance.sceneManager.LoadScene(Scenes.levelSelect); } } }