L
L
likhan2020-05-04 20:41:25
Unity
likhan, 2020-05-04 20:41:25

How to make a choice of the difficulty of the game using the buttons?

I need to make a choice of the difficulty of the game using the UI buttons easy middle hard extreme
In general, when you press, for example, the Easy button, it changes color and becomes non-interactive (not clickable), which means the level of the game is Easy. But after pressing the Middle buttons, it becomes not interactive and with a different color, and the Easy button returned to its previous state (Interactive and old color). Please help)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2020-05-04
@likhan

There is a ready-made UI component Toggleand ToggleGroupso that they change state just inside the group. But something seems strange to me that you were able to implement a different complexity of the game, but could not in the buttons. And it was worth starting with this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question