jellewie / Unity-Gnorts

Gnorts an RTS unity game
11 stars 7 forks source link

Add drag & drop support to place buildings. #47

Closed JorisVanEijden closed 5 years ago

JorisVanEijden commented 5 years ago

Attempt to solve #2

jellewie commented 5 years ago

Code looks great, I did indeed miss the improvement of the compilation of '.GetComponent()' by just doing it once on startup. nice catch! function (seems) to work fine.

Only I think it would be better when you drag that it stops building when you end the drag, what do you think? A simple drag would than only place 1 building just quickly, and pressing the item would let you be able to keep building

JorisVanEijden commented 5 years ago

You mean emptying the "hand' after 1 building is placed with drag&drop?

jellewie commented 5 years ago

Yes