Life isn't synchronized

Options
marf
marf
Hi,


I have this script in attachment.
I'm making an online fps but I think that life isn't synchronized correctly because player A hit and kill player B, but player B still has some life in his local view.

Any help?

Regards,


Marco

Comments

  • dreamora
    Options
    What do correspondingly added debug.logs mention on whats going on and what no?
  • marf
    Options
    They print a lie that is syncronized as I want, maybe I wrote a code with errors and there is another way (better) to do it... Any suggestions?
  • dreamora
    Options
    Unlikely that they print a lie.
    Sure that you aren't checking it in the wrong place or resetting it through some way you forgot? (normally hard to achieve if you properly wrote code focused at unitys component pattern but it can happen none the less)
  • marf
    Options
    I think that all is ok, I check all in the script that I've attached, all is there, and it is very strange that it isn't ynchronized...