示例#1
0
 private void Die()
 {
     Destroy(gameObject);
     //GetComponent<AudioSource> ().Play ();
     deathSound.Play();
     Debug.Log("DEATHHHHHH!!!");
     playerDeathEventChannel.NotifyPlayerDeath();
 }
示例#2
0
 private void Die()
 {
     playerDeathEventChannel.NotifyPlayerDeath();
     Destroy(gameObject);
 }