Destruction on death
This commit is contained in:
parent
b6649ebcec
commit
a811e2bc70
@ -74,6 +74,7 @@ public class HealthManager : MonoBehaviour, IDamageable
|
|||||||
|
|
||||||
var fps = GetComponent<FirstPersonController>();
|
var fps = GetComponent<FirstPersonController>();
|
||||||
if (fps) fps.enabled = false;
|
if (fps) fps.enabled = false;
|
||||||
|
Destroy(gameObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
void InitUI()
|
void InitUI()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user