A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate in the Unity community.
Separate names with a comma.
Do you even use Unity and program in C#? That code runs, its not "made-up pseudocode" Repeating "its sloppy and invites bugs" doesn't make it...
C# does allow that case select style of syntax. Maintaining this couldn't be more simple, visual and quicker - you can literally see the...
I like to keep it simple with a function that rolls a 100 sided dice and selects items based on a percentile range. public int...
Code Bro, or it didn't happen.....
Add another field where you are storing the enemy data (like hit points, damage etc) and call the field "mode" Then you can set its mode using...
I would make a card from a number of gameobjects (1 game object for the card background, 1 for any text, 1 for any other images etc) Then make...
Check out "Easy Save" in the Unity assets store - it will save you a lot of hours of work.
I used "SteamManager" as per this tutorial and it works fine. [MEDIA]
You could have "global variables" in a singleton, have all your scripts refer to them (read and write them) Google up "singleton" Singletons
I had a similar problem, but with a hex map, and each hexside may have a river, impassible or a road which all impact on movement of units across...
Heh, Switch statements have their uses, and OOP is bad. No need to crack an egg with a sledgehammer. Adding an egg is a cut and paste, 5 second...
switch EggType { case 1: // Show sprite for Egg Type 1 // explosion effect Egg Type 1 // play...
[MEDIA] Explore a hex based procedurally generated cityscape, infested with assorted zombies, collect powerful and novel zombie slaying weapons,...
You could just use one game object, and change its sprite when you detect a key press So store a reference to the game object ( Your line 8 but...
When you add or remove a list item within a loop it can error because you are changing the list you are looping on. Solution is to flag item for...
You declare a public game object variable to store it Then drag and drop the gameobject from the Hierarchy to the inspector. Tutorial: [MEDIA]
Have you checked the Unity Assets store for addons?
My hub got trashed because the computer restarted while Unity was running. This still works
I use a UnitType Int to identify what type of unit it is, and then use a Switch statement as Karderos has posted above to act on that. You also...
Use the resources folder, build you game, then see if its an issue. It wasn't for my published game...