SyncVar hook breaks currentHealth sync? (Multiplayer tutorial question)
I'm going through the Multiplayer Networking tutorial, but seem to have stumbled across a problem in the Networking Player Health section and wanted to ask whether things are as they ought to be or if there's some needed changes.
The first 'final' script correctly synchronizes health, and notes that you can check the public currentHealth variable and see that it is changing by looking at the Inspector. The second script adds Healthbar syncing, but seems to break the currentHealth syncing in the process: the health bar correctly reflects the energy level, but looking at the variable in the Inspector no longer works.
Is this as intended, or am I and/or the tutorial missing something? The only changes I've made to the script entail changing the word "Health" to "Energy" (through careful find-and-replace).
Your answer
Follow this Question
Related Questions
Strange bug with UI image 2 Answers
My Script doesn't work...Survival Shooter tutorial!! 1 Answer
Getting these errors in the first basic tutorials, and every other tutorial. 0 Answers
Problem on Asset Imports from AssetStore 0 Answers
photon with android 2 Answers