private void OnMouseOver() { if (Equipment.Instance.IsSecretRoomUnloced) { _collider.enabled = false; return; } if (Input.GetMouseButtonDown(0)) { if (!Equipment.Instance.HaveInInventory(Items.TASSEL)) { Popup.Instance.ShowPopup(HelperEnums.GetItemTip(ItemTips.ROPE)); return; } if (IsCorrect && !_unlocked) { _unlocked = true; Equipment.Instance.RemoveFromInventory(Items.TASSEL); Popup.Instance.ShowPopup(HelperEnums.GetItemTip(ItemTips.SECRET_ROOM_UNLOCKED)); Equipment.Instance.UnlockSecretRoom(); _collider.enabled = false; AudioUnlockedRoom.Play(); } } }
private void OnMouseOver() { if (Input.GetMouseButtonDown(0)) { Popup.Instance.ShowPopup(HelperEnums.GetItemTip(ItemTips.SKELETON)); } }
private void OnMouseOver() { if (Input.GetMouseButtonDown(0)) { if (Equipment.Instance.HaveInInventory(Items.CURTAIN)) { return; } if (!Equipment.Instance.HaveInInventory(Items.SWORD)) { Popup.Instance.ShowPopup(HelperEnums.GetItemTip(ItemTips.CURTAIN)); return; } if (IsCorrect) { Equipment.Instance.AddToInventory(ItemId); Equipment.Instance.RemoveFromInventory(Items.SWORD); _collider.enabled = false; AudioItem.Play(); Destroy(gameObject, 0.8f); } } }
private void OnMouseOver() { if (Input.GetMouseButtonDown(0)) { if (!Equipment.Instance.HaveInInventory(Items.BLESSING)) { Popup.Instance.ShowPopup(HelperEnums.GetItemTip(ItemTips.HOLYWATER)); return; } Equipment.Instance.AddToInventory(ItemId); AudioItemSpawned.Play(); _collider.enabled = false; } }
private void OnMouseOver() { if (Input.GetMouseButtonDown(0)) { if (!Equipment.Instance.HaveInInventory(Items.KEY_1)) { Popup.Instance.ShowPopup(HelperEnums.GetItemTip(ItemTips.SAFE)); return; } Equipment.Instance.AddToInventory(ItemId); Equipment.Instance.RemoveFromInventory(Items.KEY_1); SafeOpenAudio.Play(); _collider.enabled = false; } }
private void OnMouseOver() { if (Input.GetMouseButtonDown(0)) { if (!Equipment.Instance.HaveInInventory(Items.EXIT_SCROLL) || !Equipment.Instance.HaveInInventory(Items.MANA_POTION)) { Popup.Instance.ShowPopup(HelperEnums.GetItemTip(ItemTips.PENTAGRAM)); return; } Debug.Log("THE END"); _collider.enabled = false; SceneManager.LoadScene(2); } }
private void OnMouseOver() { if (Input.GetMouseButtonDown(0)) { if (Torches[0].IsIgnited && Torches[1].IsIgnited) { Equipment.Instance.AddToInventory(ItemId); _collider.enabled = false; AudioSource.Play(); } else { Popup.Instance.ShowPopup(HelperEnums.GetItemTip(ItemTips.BLESSING)); return; } } }
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; } } }
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; } }
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; } }