die method

void die()

Implementation

void die() {
  isDead = true;
  animation = deadAnimation;
}