コード例 #1
0
        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();
        }
コード例 #2
0
 private void SetPlayerOnStart()
 {
     PlayerCar.SetStartingPosition(transform, startPos);
     StartCoroutine(_playerCar.PlayerSlide(transform, mid, 3f,
                                           OnPlayerSlidedIn));
 }