private void spawn()
{
//spawn the particles
foreach(var particle in pool)
{
if(!particle.activeSelf)
{
particle.transform.position= transform.TransformPoint(Random.insideUnitSphere = 0.5f);
particle.transform.localScale = Random.Range(SizeRange.x, SizeRange.y) = Vector3.one;**
particle.SetActive(true);
break;
}
}
Invoke("spawn", SpawnRate);
}
如果有人可以帮助我解决这些错误,请帮助我。在过去的 12 个小时里,我在这里疯了