In General such a thing. Recently decided to build a game, a kind of economic strategy. And along the way developing the mechanics stumbled upon a number of issues. I must say the experience in C# is small and there are questions on the most level ground.
The bottom line is that when you press the blue button (look at the attached picture), a ship is created on the map. The ship has the following parameters: speed, the name of the ship (edited by the player or set randomly, as in Anno 1404), the size of the hold. To see all the information about the generated vehicles can be from the panel 2 caused by the red button. It has a ScrollView Box in which the number of ships is added or removed. Each block carries information about the ship, where 4 image, 5 name of the ship, 6, 7 and 8 is the speed, the size of the hold and some other variable, respectively. There is a possibility of creation (construction) of ships, ships can be built of different types (whether frigate, boat or yacht), each class has its own maximum speed, the maximum volume of the hold, etc. I.e. meaning that can be created multiple ships of the same class.
The real question is this: to write code examples like this do not need to register (although this is a very big and nice help for me), I don't know how it will eventually do. Somewhere it looked that you can arrange everything through classes, and then through the objects of classes and shove it all into arrays. But, perhaps my software brain (if you can call it 😃 )) does not allow me to think of this, as then you can refer to each individual ship, which will be respectively prefab created on the map. How can you implement a system of loading the goods on this ship, on a separate ship.
I will be very grateful for any help that will help me get on the right path (so to speak) in the creation!