using UnityEngine;
using System.Collections;

public class spawncube : MonoBehaviour {

	public GameObject cubey;

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {

		if (Input.GetKeyDown (KeyCode.F))
						Instantiate (cubey, transform.position, transform.rotation);
	
	}
}
