void ShowInfoArea() { InfoArea.SetWeaponName(SlotIndices[ShowBulletType]); InfoArea.UpgradeBtn.interactable = GameManager.Inst().UpgManager.BData[SlotIndices[ShowBulletType]].GetActive(); InfoArea.EquipAreaBtn.interactable = GameManager.Inst().UpgManager.BData[SlotIndices[ShowBulletType]].GetActive(); for (int i = 0; i < 3; i++) { InfoArea.PaintGauge(i, ShowBulletType); } // //{ // if (Selected[SlotIndices[ShowBulletType], i] > -1) // { // Sprite img = GameManager.Inst().Player.GetItem(Selected[SlotIndices[ShowBulletType], i]).Icon; // int grade = GameManager.Inst().Player.GetItem(Selected[SlotIndices[ShowBulletType], i]).Rarity; // int value = (int)GameManager.Inst().Player.GetItem(Selected[SlotIndices[ShowBulletType], i]).Value; // InfoArea.SetSlots(i, true, img, grade); // InfoArea.PaintGauge(i, ); // } // else // { // //InfoArea.SetSlots(i, false, OriginalSprite, -1); // } //} }
void ShowInfoArea() { InfoArea.SetWeaponName(CurBulletType); InfoArea.ShowDetail(CurBulletType); if (GameManager.Inst().UpgManager.BData[CurBulletType].GetRarity() >= (Constants.MAXRARITY - 1) && GameManager.Inst().UpgManager.BData[CurBulletType].GetPowerLevel() >= GameManager.Inst().UpgManager.BData[CurBulletType].GetMaxBulletLevel()) { InfoArea.ShowMaxLevel(true); } else { InfoArea.ShowMaxLevel(false); } InfoArea.UpgradeBtn.interactable = GameManager.Inst().UpgManager.BData[CurBulletType].GetActive(); InfoArea.EquipAreaBtn.interactable = GameManager.Inst().UpgManager.BData[CurBulletType].GetActive(); for (int i = 0; i < 3; i++) { InfoArea.PaintGauge(i, CurBulletType); } if (GameManager.Inst().UpgManager.BData[CurBulletType].GetEquipIndex() != -1) { int index = GameManager.Inst().UpgManager.BData[CurBulletType].GetEquipIndex(); CurEquip = GameManager.Inst().Player.GetItem(index); SetWeaponUI(); } else { for (int i = 0; i < 2; i++) { EquipImage[i].sprite = DefaultEquipImg; EquipFrame[i].sprite = FrameSprites[0]; EquipName[i].text = ""; EquipDetail[i].text = ""; } } }