Help| GUI not Updating

i have a a float named "health" and gui button the the text ("Health: " +health).
when the value of the health is changing , the health number in the text of the gui Box, is not changing too...
WHY???

Comments

  • Are you sure this value changes?
    In any case, this is not a networking question, so it's better suited for Unity's forum.
  • Tobias wrote:
    Are you sure this value changes?
    In any case, this is not a networking question, so it's better suited for Unity's forum.
    it do change, when i check Debug.Log... it's showing the current health, but the gui not changing...
  • Ok. Anyways: It's a Unity topic and I can't check it. Please ask in their scripting forum (not the multiplayer forum).
  • Tobias wrote:
    Ok. Anyways: It's a Unity topic and I can't check it. Please ask in their scripting forum (not the multiplayer forum).
    no the problem is the network scripting, cause it worked before...
  • the raycast shooting script:
    http://pastebin.com/2HHK4ybv

    the health script:
    http://pastebin.com/cWhZrTc1
    the health system attached to the main character.
    the raycast system attached to the bullet prefab that instantiated eveytime i shoot.

    I have some problems:
    1.when i shooting on someone, he got damage, but the current health is not change(updated) on ther health GUI...
    **when i shooting on my own collider, the health going down, and the health gui change too**

    2.when someone shooting at me, i don't get the hit-i'm no getting damage..