so far this is my using code. what i want is. if i kill a zombie the word “zombie kill +5pts” will show up and disappear after 1 second. and appear again when i kill another zombie. like in Call Of Duty Multiplayer. any help and suggestion is accepted thanks. by the way this script is attached on zombie
Text KillZmbText;
void Start () {
anim = GetComponent<Animator> ();
KillZmbText = GameObject.Find ("Zombie Hit!! + 5pts").GetComponent<Text> ();
}
void StopShowingZombieText(){
KillZmbText.enabled = false;
}
public void AppliedDamage(float damage){
health -= damage;
if (health <= 0f) {
anim.Play("Death");
Destroy (gameObject,2);
KillZmbText.enabled = true;
Invoke ("StopShowingZombieText", 1);
}
}
}