unitytips: Tuple Patterns
Some algorithms depend on multiple inputs. Tuple patterns allow you to switch based on multiple values expressed as a tuple.
The tuples provides concise syntax to group multiple data elements in a lightweight data structure.
In this sample MonoBehaviour, we will get the message to indicate the winner of the game rock, paper, scissors.