Esempio n. 1
0
        private void OnMouseOver()
        {
            if (Input.GetMouseButtonDown(0))
            {
                if (!Equipment.Instance.HaveInInventory(Items.HOLY_WATER))
                {
                    Popup.Instance.ShowPopup(HelperEnums.GetItemTip(ItemTips.CAMPFIRE));
                    return;
                }

                Equipment.Instance.AddToInventory(ItemId);
                Equipment.Instance.RemoveFromInventory(Items.HOLY_WATER);
                Fire.SetActive(false);
                FireEnd.Play();
                _collider.enabled = false;
            }
        }
Esempio n. 2
0
        private void OnMouseOver()
        {
            if (Input.GetMouseButtonDown(0))
            {
                if (!Equipment.Instance.HaveInInventory(Items.GLOVES))
                {
                    Popup.Instance.ShowPopup(HelperEnums.GetItemTip(ItemTips.BOXES));
                    return;
                }

                if (IsCorrect)
                {
                    _renderer.color = Color.green;
                    _rowAnswer.IsGoodAnswerSelected = true;
                }
            }
        }
Esempio n. 3
0
        private void OnMouseOver()
        {
            if (Input.GetMouseButtonDown(0))
            {
                if (!Equipment.Instance.HaveInInventory(Items.MATCHES))
                {
                    Popup.Instance.ShowPopup(HelperEnums.GetItemTip(ItemTips.TORCH));
                    return;
                }

                TorchLight.SetActive(true);
                IsIgnited = true;
                LightOnAudio.Play();
                AmbientLight.Play();
                _collider.enabled = false;
            }
        }