Creating Class For Player

Ok i want to make the player be able to create its own player and edit the player anytime he feels like it when he isnt playing a match. The questions are seperate.

  1. “GUI Display” Ok so this is how i want it to look like. The player rotating slowly in the middle of your screen. To the left of the player the weapons and perks you have on and o the right the store/items where you can by.

  2. “Buying New Weapons + Select” Ok now when you click on the gui button it will create a drop down list showing me the weapons under it. If i do have it when i click on it i equip it but if i didnt if i click on it it will say o you want to buy this weapon at the top of the screen. Must have a sertain amount of points then you get for use.

  3. “Saving Character” Now when you want to save your character it will show save under the player and when you hit save it will save your player for when you join matches. Think of CoD how you create a class for your player and then you can play that player thats what i want.

You can answer just 1 or all of these questions But i would really like some help on this. I got no idea on how to even start this.

if you have no idea about it, maybe it’s because you don’t know unity or programming well. if it’s not the case you should do something like this.
you should have two List<> collections for your shop and your player’s inventory. create a struct to put in the List as the generic object. for example a struct with a Texture2D and a name and an id or …
then create the gui to draw the list and do buying and … using adding and removing items to the list.

for saving you can use player prefs or serialization. it’s based on your own implementation. then in your gam just take a look at your inventory list and load all items that the player have.

creating a listbox in unity gui is not that hard but it requires a bit of coding.