Пример #1
0
        private void ServerRespawnBonus(Vector2 position)
        {
            var bonus = _pool.GetOrSpawn(position);

            bonus.ServerChangeBonusKind(GetBonusKind());

            var respawnTask = _delayedExecutor.Add(() => ServerRespawnBonus(position), _settings.RespawnIfNotPickedSeconds);

            _respawnTasks[position] = respawnTask;
        }
Пример #2
0
 private GameObject SpawnHandler(Vector3 position, NetworkHash128 id)
 {
     return(_pool.GetOrSpawn(position).gameObject);
 }