Пример #1
0
    private void Init(ItemManager.Type type) //一般背包用
    {
        _managerType = type;

        SetScrollView(false);
        ClearInfo();
    }
Пример #2
0
    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;
        }
    }
Пример #3
0
    public static void Open(ItemManager.Type type)
    {
        if (Instance == null)
        {
            Instance = ResourceManager.Instance.Spawn("EquipUpgradeUI", ResourceManager.Type.UI).GetComponent <EquipUpgradeUI>();
        }

        Instance.Init(type);
    }
Пример #4
0
    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);
    }
Пример #5
0
    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);
    }
Пример #6
0
    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();
    }
Пример #7
0
    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();
        }
    }
Пример #8
0
 private void Init(ItemManager.Type type)
 {
     _managerType    = type;
     MoneyLabel.text = ItemManager.Instance.Money.ToString();
     SetScrollView(false);
 }