Hi, I’ve a question about input tab in unity. I want to show ButtonCode that player has choose.
===================== in code, I have it ==============================
if(minimumDistance <= 2)
{
textPickUp.text = ("Press E to pick up the key");
}
if (Input.GetButtonDown("Fire1") && minimumDistance <= 2)
{
//pick up the key
}
======================== but I want to a kind like this ===============
if(minimumDistance <= 2)
{
textPickUp.text = ("Press " + button(Fire1) + " to pick up the key");
}
if (Input.GetButtonDown("Fire1") && minimumDistance <= 2)
{
//pick up the key
}
Please, how do I get it?