private void OnTriggerEnter(Collider other) { Furniture furniture = other.GetComponent <Furniture>(); if (furniture != null) { furniture.AddCollision(gameObject.name); } }