Example #1
0
 void OnChangeHealth(int health)
 {
     if (isLocalPlayer)
     {
         _gui.OnHealthChange(health, _maxHealth);
     }
 }
Example #2
0
    public void Init()
    {
        if (!isLocalPlayer)
        {
            return;
        }

        _gui = GetComponent <PlayerGui>();
        _gui.OnHealthChange(_currentHealth, _maxHealth);
    }