document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. const int MAX_HP = 100;
  2.         int hitPoints
  3.         {
  4.             get
  5.             {
  6.                 object hp;
  7.                 if (photonView.owner.CustomProperties.TryGetValue("HP", out hp))
  8.                     return (int)hp;
  9.                 else
  10.                     return MAX_HP;
  11.             }
  12.             set
  13.             {
  14.                 player.SetCustomProperty("HP", value);
  15.             }
  16.         }
');