Beispiel #1
0
    private void OnCollisionEnter(Collision collision)
    {
        string otherTag = collision.transform.tag;

        if (otherTag == "EnemyBullet" || otherTag == "Alien")
        {
            GameStats.DecrementHealth(1);
            StartCoroutine(PlayAudio(clip));
        }
    }