protected override void OnOpen() { SlotInfo.ClearCurrentSlotLoaded(); ((UserSlotData)UserData.instance).SetSlot(-1, false); SceneState.instance.SetGlobalValue(LevelController.timeTrialKey, 0, false); bool hasCleared = false; ModalSaveSlots modalSlots = UIModalManager.instance.ModalGetController <ModalSaveSlots>("slots"); for (int i = 0; i < modalSlots.slots.Length; i++) { if (SlotInfo.HasClearTime(i)) { hasCleared = true; break; } } if (hasCleared) { activeGOCleared.SetActive(true); } else { activeGODefault.SetActive(true); } }