Exemplo n.º 1
0
        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();
                }
            }
        }
Exemplo n.º 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();
                }
            }
        }