/// <summary> /// If it's the correct Item that was clicked, activates the check /// </summary> /// <param name="item"></param> private void HandleItemClicked(GameManager.Items item) { if (item == MyItem) { anim.SetBool("Completed", true); } }
private void HandleItemClicked(GameManager.Items item) { if (item == MyItem) { _text.color = Color.green; _text.text = "Found your " + MyItem.ToString() + "!"; } }
private void SetDisplayedItem(GameManager.Items item) { Sprite shownItem; if (item == GameManager.Items.NONE) { itemDisplayer.enabled = false; } else { itemDisplayer.enabled = true; shownItem = GameManager.s_gamePickups[(int)item - 1].unselected; itemDisplayer.sprite = shownItem; } }