add basic inventory, fading walls
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
||||
public class ItemDescriptionUI : MonoBehaviour
|
||||
{
|
||||
public string descriptionText = "";
|
||||
TextMeshProUGUI text;
|
||||
|
||||
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
||||
void Start()
|
||||
{
|
||||
text = GetComponent<TextMeshProUGUI>();
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
text.text = descriptionText;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user