Example #1
0
    void OnCollisionEnter(Collision other)
    {
        //Debug.Log("Collider " + name  + " hit other " + other.gameObject.name);
        HitReceiver hr = other.gameObject.GetComponent <HitReceiver>();

        if (hr != null)
        {
            hr.receiveHit(this);
        }
    }