Spawn
-
[3D] Random Range SpawnUnity(유니티) 2022. 7. 18. 14:37
일정한 구간을 정해두고 구간 내에서 오브젝트를 스폰함 InvokeRepeating(string methodName, float time, float repeatRate); using System.Collections; using System.Collections.Generic; using UnityEngine; public class SpawnManager : MonoBehaviour { public GameObject[] animalPrefabs; private float spawnRangeX = 20; private float spawnPosZ = 20; private float startDelay = 2; private float spawnInterval = 1.5f; // Start is call..