How to make pause beetwen action
using UnityEngine; using System.Collections;
public class enemyshoot : MonoBehaviour {
public Transform spawnbulletenemy;
public Rigidbody bullet;
public float brzinametka = 5f;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
Rigidbody metakkojileti;
metakkojileti = Instantiate (bullet, spawnbulletenemy.position, spawnbulletenemy.rotation) as Rigidbody;
metakkojileti.AddForce (spawnbulletenemy.forward * brzinametka);
}
void shoot()
{
}
}
This is my script and I want script in void Update () {} to do evry 2 or 3 seconds ?
Comment
Your answer
Follow this Question
Related Questions
C# Simple delay at void Update? 2 Answers
Help with corutines 1 Answer
Why my Coroutine does unwanted pauses? 1 Answer
Make my moving platforms pause at its endpoints using c# 2 Answers
Wait for 7 Seconds not working 1 Answer