How To Create Character Classes in Unity

 

If you want to create a character classes for a game than this might help.

First: Create a script for just a base player. In this script you will create your skills and stats for all characters. Lines 10-14 are the stat names and you can call them what you like. Ignore the XP stuff, because it does not affect the class. This script is specifically tied to the player

Second: Create a script for the base of all classes. Copy and paste what you made into this script.  This script sets up the stats, name, etc. (note: the class name and description says protected you can put it as public.)

Third: Create the script for your class. Here you will assign your stats to numbers, name and description for the class. Everything in here is what you will see in the game.