private void Interactions()
        {
            if (Input.GetKeyDown(KeyCode.E))
            {
                if (m_nearChest)
                {
                    m_chest.Open();

                    //m_gold += m_chest.getGold();
                }

                if (m_nearLever)
                {
                    m_lever.HandleLever();
                }
            }
        }
Exemple #2
0
        private void Interactions()  //wrong naming, should be like ObjectsInteraction
        {
            if (Input.GetKeyDown(KeyCode.E))
            {
                if (m_nearChest)
                {
                    m_chest.Open();

                    //m_gold += m_chest.getGold();
                }

                if (m_nearLever)
                {
                    m_lever.HandleLever();
                }
            }
        }