Ejemplo n.º 1
0
    private void OnCollisionEnter(Collision collision)
    {
        // Becomes true if we collided with the player
        var tag = collision.gameObject.tag;

        if (tag == "Player" || tag == "Biker")
        {
            m_bCollided = true;
            m_Death.KillAfter(3);

            LockedOn.Stop();
            AboutToShoot.Stop();
        }
    }