Question by
yepez7 · Jan 24, 2016 at 10:02 PM ·
vector3invokerepeating
My new invoke does not appear in the position I want.
public class elcajon : MonoBehaviour { public GameObject Player;
// Use this for initialization
void Start () {
InvokeRepeating ("BlockDown", 5, 5);
}
// Update is called once per frame
void Update () {
}
void BlockDown () {
Instantiate(Player,new Vector3(2.5f,6f,0), Quaternion.identity );
}
}
Comment
Answer by yepez7 · Jan 25, 2016 at 06:29 AM
it change to a different position but still don't invoke were I ant it?
Did you removed the new vector 3 ? I mean the new or do you already tried to teleport to a gameobject.transform.position?