Actions menu imp. Still buggy at first render

This commit is contained in:
Vladimir Koshevarov
2023-03-02 19:13:11 +02:00
parent 2337bc1423
commit 62df90bb52
4 changed files with 126 additions and 33 deletions
@@ -12,13 +12,14 @@ public class ItemActionsUI : MonoBehaviour
[SerializeField]
private Button _btnCancel;
private void Awake()
private void Start()
{
Hide();
}
public void Show(string title, string description)
{
gameObject.SetActive(true);
_title.text = title;
_description.text = description;
@@ -26,12 +27,10 @@ public class ItemActionsUI : MonoBehaviour
{
Hide();
});
gameObject.SetActive(true);
}
private void Hide()
{
gameObject.SetActive(false);
//Destroy(gameObject);
}
}