- Home /
Question by
selenbuyukyilmaz · Sep 30, 2018 at 06:14 PM ·
gui.boxslot
Can I keep the gui.box in a variable?
Hi everyone. I am working on the 2D slot game. I created the pictures with GUI.Box in my code. My slots are like the 3x5 matrix. I wanna write win method but it must be like that: picture in the first row and the first column is the equal picture in the second row and second column. So, can I keep the gui.box in a variable? If it is yes, I can compare the pictures in the slots.
GUI.Box(new Rect(Screen.width - 495, Screen.height - 415, 60, 80), Resources.Load((itemsToDisplay[2] == null) ? "seven" : itemsToDisplay[2]) as Texture2D);
adsız.jpg
(281.7 kB)
Comment