private void SpawnPlayer() { _currentPlayer = _playerManager.GetPoolObject(); _currentPlayerTransform = _currentPlayer.GetTransform(); _currentPlayer.OnFire += () => { var bullet = _bulletManager.GetPoolObject(); bullet.Activate(); }; _currentPlayer.OnDeactivate += () => { _currentPlayer = null; currentLives--; OnLivesChange((uint)currentLives); }; _currentPlayer.Activate(); }