Answer the question
In order to leave comments, you need to log in
How to implement Unity combinations?
Hello!
I'm making a game of "Dice" and I have a question: how to make the game have combinations?
Look, here is a table with 6 dice, and the player can choose from one to six pieces, and the game should automatically add combinations of them and add points to the player. Combinations in the game, such as 3 fives, 4 triples, 5 units, etc., as well as for one or two units or five, the player also receives points. It is also worth considering that when you click on the cube again, the selection from it disappears. And also the player can choose them in any order, let's say: 3, 3, 1, 5, 3, and the game should see in this: 3, 3, 3, then 1 and then another 5. Please tell me how can I implement This? It’s just that it’s extremely stupid to do this through the usual if else, but I can’t think of anything else.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question