예제 #1
0
 void Die() // TODO: consider moving visual effects and actual 'death' implementation details out of here. Same goes for visual effects at damage.
 {
     characterHolder.Die(gameObject);
     visualSoundCharacterEffects.PlayDeathEffects();
     gameObject.GetComponent <Collider2D>().enabled = false;
     Destroy(gameObject, timeForDestroyingGO);
 }