private void Start() { _playerCar = gameManager.PlayerCar; _playerCar.Initialize(); for (var i = 0; i < hearts.Length; i++) { if (_playerCar.HitsLeft <= i) { hearts[i].enabled = false; } } SetPlayerOnStart(); }
private void SetPlayerOnStart() { PlayerCar.SetStartingPosition(transform, startPos); StartCoroutine(_playerCar.PlayerSlide(transform, mid, 3f, OnPlayerSlidedIn)); }