private void OnStartGame(object sender, StartGameEventArgs e)
 {
     gameArgs = e;
     PoolManager.WarmPool(collectablePrefab, CalculatePoolSize(e.DifficultyParameters.MinSpawnInterval));
     //InvokeRepeating(nameof(SpawnCollectable), 0f, e.SpawnRate);
     spawner = StartCoroutine(nameof(SpawnCollectable));
 }
Exemplo n.º 2
0
 public async void StartGame(object sender, StartGameEventArgs args)
 {
     await StartRound(args.roomId);
 }