示例#1
0
 // Start is called before the first frame update
 void Start()
 {
     Debug.Log(damage);
     Debug.Log(maxHealth);
     healthBarPlayer.SetMaxHealth(maxHealth, currentHealth);
     PlayerPrefs.SetInt("attack", damage);
 }
示例#2
0
 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);
 }
示例#4
0
 void Start()
 {
     currentHealth = maxHealth;
     healthBar.SetMaxHealth(maxHealth);
 }
示例#5
0
 public void Start()
 {
     currentHealth = health;
     healthBar.SetMaxHealth(health);
 }