using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SpawnBoxCollider : MonoBehaviour {

	public GameObject rectMesh;
	public GameObject BoxColliderInstance;
	// Use this for initialization
	void Start () {
		BoxColliderInstance = Instantiate(rectMesh,transform.position,transform.localRotation);
		BoxColliderInstance.tag = "Box Collider Expansion";
		BoxColliderExpansion boxColliderExpansion = BoxColliderInstance.GetComponent<BoxColliderExpansion> ();
		boxColliderExpansion.enabled = true;
		BoxColliderInstance.transform.SetParent (gameObject.transform);
	}
	
	// Update is called once per frame
	void Update () {

	}
}
