Example #1
0
 private void Awake()
 {
     for (int i = 0; i < m_Items.Count; i++)
     {
         ItemShopUI item = Instantiate(m_ItemShopPrefab, m_Container);
         item.InitItemShopUI(m_Items[i]);
     }
 }
Example #2
0
    public bool canTalkAgain          = true;               //Make sure that if the player chooses "Exit" in the Shop UI, the Confirm button is not read to start the conversation again until the UI is closed

    private void Update()
    {
        switch (currentState)
        {
        case merchantState.idle:
            if (!DialogueManager.instance.isActive && interactedWith)
            {
                ItemShopUI.OpenItemShop();
                currentState   = merchantState.active;
                interactedWith = false;
            }
            break;

        case merchantState.active:
            break;
        }
    }