тестирование
This commit is contained in:
1 parent
11d290d572
commit
570e778cda
39 files changed
+2007
-97
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user