This commit is contained in:
Nim XD
2024-08-27 21:01:33 +05:30
parent 99eaf514fd
commit 121a1b7c73
31803 changed files with 623461 additions and 623399 deletions

View File

@@ -1,18 +1,18 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class enemyHealthBar : MonoBehaviour
{
public enemyScript enemy;
float timer=0;
void Update()
{
if(timer >=0){ timer -= Time.deltaTime; return;}
timer = 0.5f;
enemy.healthBar.SetHealth(enemy.health, enemy.maxHealth);
}
}
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class enemyHealthBar : MonoBehaviour
{
public enemyScript enemy;
float timer=0;
void Update()
{
if(timer >=0){ timer -= Time.deltaTime; return;}
timer = 0.5f;
enemy.healthBar.SetHealth(enemy.health, enemy.maxHealth);
}
}