public string GetRace() { RaceConfig config = SingletonFactory <RaceConfig> .Instance.GetDataById(mRaceId); if (config != null) { return(config.name); } return(string.Empty); }
private void RecalcRaceMod() { RaceConfig config = SingletonFactory <RaceConfig> .Instance.GetDataById(mRaceId); if (config != null) { mRaceMod.SetPropItem((int)enmPropType.STR, config.strMod); mRaceMod.SetPropItem((int)enmPropType.DEX, config.dexMod); mRaceMod.SetPropItem((int)enmPropType.INT, config.intMod); mRaceMod.SetPropItem((int)enmPropType.CON, config.conMod); mRaceMod.SetPropItem((int)enmPropType.WIS, config.wisMod); mRaceMod.SetPropItem((int)enmPropType.CHA, config.chaMod); } }