// Start is called before the first frame update void Start() { Debug.Log(damage); Debug.Log(maxHealth); healthBarPlayer.SetMaxHealth(maxHealth, currentHealth); PlayerPrefs.SetInt("attack", damage); }
void Start() { if (IsServer) { currentHealth.Value = maxHealth; healthBar.SetMaxHealth(maxHealth); } }
void Start() { if (IsServer) { currentHealth.Value = maxHealth; currentEnergy.Value = 0; } healthBar.SetMaxHealth(maxHealth); energyBar.SetMaxHealth(maxEnergy); }
void Start() { currentHealth = maxHealth; healthBar.SetMaxHealth(maxHealth); }
public void Start() { currentHealth = health; healthBar.SetMaxHealth(health); }