How can i limiting clone prefab?

Updated on September 6, 2017 in  [R] Scripts
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
1 on September 6, 2017

Hi, I wanna ask.
I’m making game like attacking tower. Then i have some card spawner, when i drag and drop it on the ground, it will instantiate a new clone prefab. But, how can i limiting the clone?
For example, in the scene, there are 5 clone active. And i wanna make it disable the drag and drop till the clone is less than 5 active. How can i do that?
Sorry for my bad english 😀 I’m indonesian. I wanna learn unity for make games. And i’m still 14 now 😉
Hope you can help me, Thanks 😀

  • Liked by
Reply
0 on September 6, 2017

From the information you gave the only thing I can say is: ” “…

I have no clue how you’re handling dragging and dropping. Code? Examples? Pictures? Videos? You gave absolutely nothing except the problem…

Read this:

http://forum.brackeys.com/thread/forum-etiquette-helping-you-create-a-good-topic/

  • Liked by
Reply
Cancel