示例#1
0
 private void Update()
 {
     enemyHealth = player.GetCurrentTarget();
     if (enemyHealth != null)
     {
         healthText.text = "Enemy: " + Math.Round(enemyHealth.GetCurrentHealth(), 0).ToString() + "/" + Math.Round(enemyHealth.GetMaxHealth(), 0).ToString();
     }
     else
     {
         healthText.text = "";
     }
 }