My character just disappears when he dies, i was wondering how to play the "die animation" when he dies instead of just disappearing?
Any help would be fab thanks! :)
The code i have is:
function OnTriggerEnter (other : Collider) {
Destroy(other.gameObject);
animation.Play("die");
}
↧