public void Init(int slot) { mExists = UserSlotData.IsSlotExist(slot); if (mExists) { infoGO.SetActive(true); deleteGO.SetActive(true); newGO.SetActive(false); switch (SlotInfo.GetGameMode(slot)) { case SlotInfo.GameMode.Hardcore: portrait.spriteName = SlotInfo.IsDead(slot) ? portraitDead : portraitHardcore; break; default: portrait.spriteName = portraitNormal; break; } for (int i = 0; i < weapons.Length; i++) { weapons[i].SetActive(SlotInfo.WeaponIsUnlock(slot, i + 1)); } heartsLabel.text = "x" + SlotInfo.GetHeartCount(slot); int tankCount = 0; if (SlotInfo.IsSubTankEnergy1Acquired(slot)) { tankCount++; } if (SlotInfo.IsSubTankEnergy2Acquired(slot)) { tankCount++; } eTankLabel.text = "x" + tankCount; tankCount = 0; if (SlotInfo.IsSubTankWeapon1Acquired(slot)) { tankCount++; } if (SlotInfo.IsSubTankWeapon2Acquired(slot)) { tankCount++; } wTankLabel.text = "x" + tankCount; armor.color = SlotInfo.IsArmorAcquired(slot) ? Color.white : Color.black; clearTimeLabel.text = "CLEAR TIME: " + SlotInfo.GetClearTimeString(slot); } else { infoGO.SetActive(false); deleteGO.SetActive(false); newGO.SetActive(true); } }