Is there a way to store multiple values in one variable?
For example, there is a variable named sample. And var sample equals to an int of 5 and also an Boolean of true.
i.e. var sample = new (int 5, bool true);
or something like this...
I feel like there is some sort of way of doing this since vector 3 can hold multiple values(x y and z).
I thought that an array might work but this variable has to go into an array. What I mean by this is:
anArray.add(sample);
So is there anyway of doing this? thanks!
↧