private void Init(ItemManager.Type type) //一般背包用 { _managerType = type; SetScrollView(false); ClearInfo(); }
public void Init(TeamMember member, bool isSpellCard) { Clear(); _member = member; _isSpellCard = isSpellCard; if (isSpellCard) { SkillScrollView.SetData(new ArrayList(member.SpellCardDic)); } else { SkillScrollView.SetData(new ArrayList(member.SkillDic)); } if (MySceneManager.Instance.CurrentScene == MySceneManager.SceneType.Villiage) { _itemManagerType = ItemManager.Type.Warehouse; } else { _itemManagerType = ItemManager.Type.Bag; } }
public static void Open(ItemManager.Type type) { if (Instance == null) { Instance = ResourceManager.Instance.Spawn("EquipUpgradeUI", ResourceManager.Type.UI).GetComponent <EquipUpgradeUI>(); } Instance.Init(type); }
public static void Open(ItemManager.Type type) { ExploreController.Instance.StopEnemy(); if (Instance == null) { Instance = ResourceManager.Instance.Spawn("NewCookUI", ResourceManager.Type.UI).GetComponent <NewCookUI>(); } Instance.Init(type); }
public static void Open(ItemManager.Type type, TeamMember teamMember, Equip currentEquip) { ExploreController.Instance.StopEnemy(); if (Instance == null) { Instance = ResourceManager.Instance.Spawn("BagUI", ResourceManager.Type.UI).GetComponent <BagUI>(); } Instance.Init(type, teamMember, currentEquip); }
private void Init(ItemManager.Type type, TeamMember member, Equip currentEquip) //換裝備用 { _managerType = type; _selectedMember = member; _currentEquip = currentEquip; MoneyLabel.text = ItemManager.Instance.Money.ToString(); KeyLabel.text = ItemManager.Instance.KeyAmount.ToString(); SetScrollView(ItemManager.Instance.GetEquipListByType(type, currentEquip.EquipType)); ItemTypeGroup.SetActive(false); SetVolume(); ClearInfo(); //SelectCharacterGroup.SetData(); }
private void Init(ItemManager.Type type) //一般背包用 { _managerType = type; _selectedMember = null; MoneyLabel.text = ItemManager.Instance.Money.ToString(); KeyLabel.text = ItemManager.Instance.KeyAmount.ToString(); SetScrollView(ItemData.TypeEnum.All, false); ItemTypeGroup.SetActive(true); SetVolume(); ClearInfo(); if (type == ItemManager.Type.Bag) { SelectCharacterGroup.SetData(); } }
private void Init(ItemManager.Type type) { _managerType = type; MoneyLabel.text = ItemManager.Instance.Money.ToString(); SetScrollView(false); }