/** * On trigger collison place the box on the building pad */ void OnTriggerEnter(Collider other) { if (other.gameObject.tag == "Box") { Box box = other.GetComponent <Box>(); if (box.Enabled()) { buildingPad.PlaceBox(box); } } }