Question by
OussOua · Jun 23, 2017 at 04:17 AM ·
instantiatevector3
i get error when i add vector 3
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Create : MonoBehaviour {
public Object myTarget;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
if (Input.GetKey ("g")) {
Instantiate (myTarget, Vector3(2, 0, 0));
}
}
}
Comment