тестирование

This commit is contained in:
lapich committed 2026-10-24 20:54:38 +03:00
1 parent 11d290d572
commit 570e778cda
39 files changed
+2007 -97

No files matched your search

+10 -1
View File
@@ -19,6 +19,12 @@ public class MutantHealth : MonoBehaviour
mutantAI = GetComponent<BlindMutantAI>();
}
public void SetMaxHealthForTest(float val)
{
maxHealth = val;
currentHealth = val;
}
public void TakeDamage(float damage, Transform attacker = null)
{
if (IsDead) return;
@@ -68,6 +74,9 @@ public class MutantHealth : MonoBehaviour
col.enabled = false;
}
Destroy(gameObject, 3.5f);
if (Application.isPlaying)
{
Destroy(gameObject, 3.5f);
}
}
}