public void Init(Transform playerPosition, ArenaManager arenaManager, UI ui) { _ui = ui; _arenaManager = arenaManager; _numberEnemies = arenaManager.GetNumberEnemies(); _time = arenaManager.GetSpawnTimeInterval(); _prefabsEnemy = arenaManager.GetPrefabsEnemy(); _playerPosition = playerPosition; coroutine = CheckNumberEnemies(); StartCoroutine(coroutine); }