uydu3
80+ Silver
- Katılım
- 23 Nisan 2020
- Mesajlar
- 3,342
Assets\Scripts\Spawner.cs(20,28): error CS1002: ; expected
Aldığım hata bu
Yazdığım kod ise şöyle
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Spawner : MonoBehaviour
{
public float height;
public Birdy BirdScript;
public GameObject Borular;
public IEnumerator SpawnObject()
{
while (!BirdScript.isDead)
{
Instantiate(Borular, new Vector3(3, Random.Range(-height,height), 0), Quaternion.idenity);
yield return now WaitForSeconds (1f);
}
}
}
Aldığım hata bu
Yazdığım kod ise şöyle
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Spawner : MonoBehaviour
{
public float height;
public Birdy BirdScript;
public GameObject Borular;
public IEnumerator SpawnObject()
{
while (!BirdScript.isDead)
{
Instantiate(Borular, new Vector3(3, Random.Range(-height,height), 0), Quaternion.idenity);
yield return now WaitForSeconds (1f);
}
}
}