26 lines
473 B
C#
26 lines
473 B
C#
using UnityEngine;
|
|
|
|
namespace Artngame.TEM
|
|
{
|
|
public class SpawnDebris : MonoBehaviour
|
|
{
|
|
public GameObject sphereDebris;
|
|
|
|
private void Start()
|
|
{
|
|
float num = 400f;
|
|
for (int i = 0; i < 40; i++)
|
|
{
|
|
float x = Random.Range(0f - num, num);
|
|
float y = sphereDebris.transform.position.y;
|
|
float z = Random.Range(0f - num, num);
|
|
Object.Instantiate(sphereDebris, new Vector3(x, y, z), Quaternion.identity);
|
|
}
|
|
}
|
|
|
|
private void Update()
|
|
{
|
|
}
|
|
}
|
|
}
|