示例#1
0
    private void OnTriggerEnter(Collider other)
    {
        Furniture furniture = other.GetComponent <Furniture>();

        if (furniture != null)
        {
            furniture.AddCollision(gameObject.name);
        }
    }