Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by murded1 · Sep 24, 2011 at 11:11 PM · referencehackandslashhealth

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

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image timberland8989 · Sep 25, 2011 at 03:39 AM 0
Share

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

timberland

timberland boot

timberland shops

timberland 2011

discount timberland

wholesale timberland

timberland chaussures

avatar image syclamoth · Sep 25, 2011 at 02:02 PM 0
Share
 / \
  |
  |
  |

Hey Ad$$anonymous$$s, didn't we get rid of this guy the other day?

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by murded1 · Sep 25, 2011 at 10:36 AM

Bump, Still need this.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image syclamoth · Sep 25, 2011 at 02:04 PM 0
Share

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

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges