private void Start() { _clientGenerator = GetComponent <ClientGenerator>(); if (_clientGenerator == null) { Debug.LogError("Error: No Component 'ClientGenerator' were found on gameObject '" + gameObject.name + "'. Could not continue."); } else { _clientSpawnerCoroutine = null; PlayerTime.Instance.OnTimerFinish += StopSpawningClients; ClientSlotManager.Instance.InitSlots(); _clientsList = _clientGenerator.GenerateFullLevelClients(_maxClients); _isClientsInfinite = true; StartSpawningClients(); } }