Hi there, im complete noob to unity and i dont know how to make my 2 floats "spawnTime" and "spawnDelay" random. here is the script
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SpawnEnemyScript : MonoBehaviour
{
public GameObject spawnee;
public static bool stopSpawning;
public float spawnTime;
public float spawnDelay;
// Start is called before the first frame update
void Start()
{
stopSpawning = false;
InvokeRepeating("SpawnObject", spawnTime, spawnDelay);
}
public void SpawnObject()
{
Instantiate(spawnee, transform.position, transform.rotation);
if (stopSpawning)
{
CancelInvoke("SpawnObject");
}
}
}