using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; //Define the system managing the clients. (Singleton) public sealed class ClientManager : MonoBehaviour { int currentNbClient = 0; int nbMaxClients = 1; bool clientSpawnReady = false; float clientSpawnTimer = 2.0f; //Intial time before first spawn (pseudo-random after that) float maxTimeNewClients = 10.0f; string ClientRessourceFolder = "Clients"; Vector3 spawnPosition = new Vector3(0, 0, 0); private Object[] clients; //Request new client //Return wether a new client was created public bool clientRequest() { if(clientSpawnReady && currentNbClient(); } //// }