U
U
Uncle Bogdan2021-06-23 11:46:00
Unity
Uncle Bogdan, 2021-06-23 11:46:00

How to make a variable like Vector2, only with custom names?

Tipo I first made 2 int variables like the minimum value and the maximum. Then I remembered Vector2, but the names will be strange. Like CoinsAmount

X:0 Y:0

It's not clear what X and Y are, can I replace X with MinValue and Y with MaxValue? And in the code it is strange to address. CoinsAmount.x

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Kachan, 2021-06-24
@motkot

public struct MinMaxInt
{
    int Min;
    int Max;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question