Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- public class Creator : MonoBehaviour {
- public GameObject thePrefab;
- // Use this for initialization
- void Start () {
- }
- // Update is called once per frame
- void Update () {
- if (Input.GetKeyDown (KeyCode.R))
- {
- // GameObject instance = new GameObject ();
- GameObject MeteorCreator = Instantiate (thePrefab,
- transform.position,
- transform.rotation) as GameObject;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement