IEnumerator DeployConstructionBox(Vector3 position, float timeToBuild)
{
Transform underConstructionBox = Instantiate(prefabUnderConstructionBox, position, Quaternion.identity)
as Transform;
yield return new WaitForSeconds(timeToBuild);
// Completed? Call the completed animation
underConstructionBox.animation.Play("Complete");
// Wait for the animation finish
yield return new WaitForSeconds(underConstructionBox.animation["Complete"].clip.length);
// Destroy the object
Destroy(underConstructionBox.gameObject);
}