How would I get mainChars stats to show in the inspector??
using UnityEngine;
using System.Collections;
public class BaseStats : MonoBehaviour {
public struct baseStats {
public string name;
public int currentLevel;
public int targetLevel;
public int currentHp;
public int maxHp;
public int currentAp;
public int maxAp;
public int strength;
public int toughness;
public int agility;
public int intelligence;
public int willPower;
public int luck;
public int attack;
public int hitPercentage;
public int defence;
public int evasionPercentage;
public int abilityAttack;
public int abilityDefence;
public int abilityDefencePercentage;
public int currentExp;
public int targetExp;
public baseStats(string Name, int CurrentLevel, int TargetLevel, int CurrentHp, int MaxHp, int CurrentAp, int MaxAp, int Strength, int Toughness, int Agility, int Intelligence, int WillPower, int Luck, int Attack, int HitPercentage, int Defence, int EvasionPercentage, int AbilityAttack, int AbilityDefence, int AbilityDefencePercentage, int CurrentExp, int TargetExp) {
name = Name;
currentLevel = CurrentLevel;
targetLevel = TargetLevel;
currentHp = CurrentHp;
maxHp = MaxHp;
currentAp = CurrentAp;
maxAp = MaxAp;
strength = Strength;
toughness = Toughness;
agility = Agility;
intelligence = Intelligence;
willPower = WillPower;
luck = Luck;
attack = Attack;
hitPercentage = HitPercentage;
defence = Defence;
evasionPercentage = EvasionPercentage;
abilityAttack = AbilityAttack;
abilityDefence = AbilityDefence;
abilityDefencePercentage = AbilityDefencePercentage;
currentExp = CurrentExp;
targetExp = TargetExp;
}
}
void Start() {
baseStats mainChar = new baseStats(
"Truth",
98,
99,
7554,
9999,
754,
999,
255,
255,
255,
255,
255,
255,
255,
255,
255,
100,
255,
255,
100,
7773473,
7777777);
print(mainChar.currentHp);
}
}
I want it where I can make each character a drop down in the inspector. Also I wanted it so that I could instead of making the hp a current and max, that also I could make it a dropdown in each character that would contain current and max, also the same for ap and exp. Thanks in advanced!!!