Hello,
I would like to have two main menu : one on the left side (activated by the button LB) and one on the right side (activated by the button RB)
My idea is : when i have my “left main menu” (by keeping pressed LB) i can enter in the sub menu by pushing RB and when i have my Right main menu activated (by keeping pressed RB), i can enter in the sub right menu by pressing LB
The problem is … my code don’t understand at all, and if i press LB after RB or RB afterLB… it is the same … I always enter in my right sub menu.
Could you help me ? This is my test code
if (Input.GetButton("LB"))
{
valueText.text = "LB";
if (Input.GetButton("RB"))
{
valueText.text = "RB after LB";
}
}
if (Input.GetButton("RB"))
{
valueText.text = "RB";
if (Input.GetButton("LB"))
{
valueText.text = "LB after RB";
}
}