示例#1
0
    void OnCollisionEnter(Collision c)
    {
        HapticFeedback h = c.gameObject.GetComponent <HapticFeedback>();

        if (h != null)
        {
            h.DoFeedback();
            //Debug.Log("DoHapticFeedback");
        }
    }