add shovel and digging, basic item interaction
This commit is contained in:
@@ -11,6 +11,9 @@ public class DialogueManager : MonoBehaviour
|
||||
public TextMeshProUGUI nameText;
|
||||
public TextMeshProUGUI dialogueText;
|
||||
|
||||
public TextMeshProUGUI itemText;
|
||||
public GameObject pickupHint;
|
||||
|
||||
public Animator animator;
|
||||
|
||||
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
||||
@@ -68,4 +71,16 @@ IEnumerator TypeSentence(string sentence)
|
||||
yield return new WaitForSeconds(0.01f);
|
||||
}
|
||||
}
|
||||
|
||||
public void ShowItemText(string itemName)
|
||||
{
|
||||
itemText.text = itemName;
|
||||
pickupHint.SetActive(true);
|
||||
}
|
||||
|
||||
public void HideItemText()
|
||||
{
|
||||
itemText.text = "";
|
||||
pickupHint.SetActive(false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user