Ejemplo n.º 1
0
 void BeginDeathSequence()
 {
     _col.enabled   = false;
     _rig.simulated = false;
     _spawnServer.createExplosion(transform.position, Quaternion.identity);
     Destroy(this.gameObject, 0.25f);
 }
 private void Die()
 {
     _col.enabled   = false;
     _rig.simulated = false;
     _spawnServer.createExplosion(transform.position, Quaternion.identity);
     _deathEvent.Raise();
     Destroy(this.gameObject, 0.25f);
 }