예제 #1
0
    public IEnumerator UpdateUI(int currentPanelSelected)
    {
        shopMenu.SetAllPanelsActive();
        yield return(StartCoroutine(PopulateVitaminPanel()));

        yield return(StartCoroutine(PopulateWeaponPanel()));

        yield return(StartCoroutine(PopulateKeyItemPanel()));

        switch (currentPanelSelected)
        {
        case 0:
            shopMenu.SelectVitaminPanel();
            break;

        case 1:
            shopMenu.SelectWeaponPanel();
            break;

        case 2:
            shopMenu.SelectKeyItemPanel();
            break;
        }
    }