I have this script in Java
if(breaker>2)
{
// At skyde
if(Input.GetButtonDown(“Jump”))
{
var bullit = Instantiate(bullitPrefab, GameObject.Find(“Spawn”).transform.position, Quaternion.identity);
bullit.rigidbody.AddForce(transform.forward * 400);
breaker-=1;
}
After Breaker -=1 i want the script to wait for like 2 secounds before it complete it?
How do I do that?
The code you linked contains two errros. yield is spell incorrectly and WatForSeconds is not the correct capitalization. However you might of just hand typed the code as your error post.