コード例 #1
0
    private void UpdateFourthImage(PotSelectImg potImg)
    {
        if (m_potsList.Count == 1)
        {
            potImg.SetImage(CraftingDataBase.GetPotionImage(m_potsList[0][0]));
            return;
        }
        m_potsList  = m_pots.GetPotiosBag();
        m_activeBag = m_pots.GetActivePot();

        int num = (m_activeBag + 2 > m_potsList.Count - 1) ? 0 + ((m_activeBag + 2) - m_potsList.Count) : m_activeBag + 2;

        potImg.SetImage(CraftingDataBase.GetPotionImage(m_potsList[num][0]));
    }
コード例 #2
0
    private void UpdateThirdImage(PotSelectImg potImg)
    {
        if (m_potsList.Count == 1)
        {
            potImg.SetImage(CraftingDataBase.GetPotionImage(m_potsList[0][0]));
            return;
        }
        m_potsList  = m_pots.GetPotiosBag();
        m_activeBag = m_pots.GetActivePot();

        int num = (m_activeBag - 2 < 0) ? m_potsList.Count - (0 - (m_activeBag - 2)) : m_activeBag - 2;

        potImg.SetImage(CraftingDataBase.GetPotionImage(m_potsList[num][0]));
    }