- Home /
Hack and slash object reference Help?
Hey Guys i need some help i am currently following the tutorial series and i have run into a little bug ... i have tried to completly recode the whole classes but no such luck
Heres the scenario
when i use the code
GetVital((int)VitalName.Health).Addmodifier(new ModifyingAttribute(GetPrimaryAttribute((int)AttributeName.Constituion), .5f));
It Works Fine but When i change "Health" To "Mana" I Get The Error
NullReferenceException: Object reference not set to an instance of an object CharecterGeneration.Displayvitals () (at Assets/Standard Assets/My Scripts/CharecterGeneration.cs:66) CharecterGeneration.OnGUI () (at Assets/Standard Assets/My Scripts/CharecterGeneration.cs:35)
and
NullReferenceException: Object reference not set to an instance of an object BaseCharecter.StatUpdate () (at Assets/Standard Assets/My Scripts/BaseCharecter.cs:113) CharecterGeneration.Update () (at Assets/Standard Assets/My Scripts/CharecterGeneration.cs:27)
Spamming Up The Command Page!
Please Help
if you need my project file please request it i really need this
Thanks for co$$anonymous$$g our timberland online store! Just enjoy yourself here! As a developping company, timberland boots always can give us some surprise .I belive timberland shoes Sale can make your feet more comfortable, make your life more stylish!If you want to have a try ,just click here: discount timberland boots Free delivery
/ \
|
|
|
Hey Ad$$anonymous$$s, didn't we get rid of this guy the other day?
Answer by murded1 · Sep 25, 2011 at 10:36 AM
Bump, Still need this.
I'm afraid you still haven't provided enough information for us to help you with this! For example, how does the GetVital code even work? Is there anything actually coded for '$$anonymous$$ana'? Or does it only do health? There could be any number of problems here. We're not all familiar with the specific tutorial you are doing here!
Your answer
Follow this Question
Related Questions
Object reference not set to an instance of an object 1 Answer
ManaBar plus pause 1 Answer
Health won't work. 1 Answer
Bool from referenced script not updating? 2 Answers
Scriptable object saves but what about objects it references? 0 Answers