13lade619
is now a game developer :)
- Reaction score
- 399
(looking for unity help, or helpful tips and concepts in general programming)
So my group for class decided to make a basic RTS for our project.
For the prototype I'm in charge of the mainly interface other stuff.
First thing is the selection, basically one unit selection first.
What I was thinking is recording clicks on the gameobject and then adding it to an array,
but how do I exactly do that in UNITY? I want to have a global array that's accessible by multiple scripts (or maybe passed to others through Messages)
Second is the command buttons. I want that if a unit is selected there's a SET of command buttons for the specific unit (just like the command cards in SCII, I believe).
so in theory.. this is what I want to achieve:
Click Unit (store unit somewhere, make command card appear)
Click Button on Command Card (store 'order' somewhere)
Click on Gameworld (have the selected unit execute the order)
So my group for class decided to make a basic RTS for our project.
For the prototype I'm in charge of the mainly interface other stuff.
First thing is the selection, basically one unit selection first.
What I was thinking is recording clicks on the gameobject and then adding it to an array,
but how do I exactly do that in UNITY? I want to have a global array that's accessible by multiple scripts (or maybe passed to others through Messages)
Second is the command buttons. I want that if a unit is selected there's a SET of command buttons for the specific unit (just like the command cards in SCII, I believe).
so in theory.. this is what I want to achieve:
Click Unit (store unit somewhere, make command card appear)
Click Button on Command Card (store 'order' somewhere)
Click on Gameworld (have the selected unit execute the order)