im trying to make GUI appear after the gameobject was been destroyed.
heres my script im using:
var MaxHealth : int = 500;
var CurrentHeath : int;
function Start () {
CurrentHeath = MaxHealth;
}
function ApplyDamage ( Damage : float ) {
if( CurrentHeath < 0){
return;
}
CurrentHeath -= Damage;
if( CurrentHeath == 0 ){
Destroy( gameObject) ;
}
}
thanks for your help
P.S im new to scripting