Пример #1
0
        protected void SetPlayerCarSettings(IGameWindow gameWindow)
        {
            _playerCar = _carConstructor.CreatePlayerCar(_playerManager.selectedCar, _playerManager.selectedCar.current_color);
            Assert.AreNotEqual(null, _playerCar);

            _playerCar.SetColorInGame(_playerManager.selectedCar.current_color);
            _playerCar.transform.tag      = "Player";
            _playerCar.Transform.position = new Vector3(0f, 3f, 2f);
            _playerManager.PlayerCar      = _playerCar;

            //_playerCar.SetValue_RaceTimer(gameWindow.Get_TextRaceTimer());
        }
Пример #2
0
 private void InitPlayerCar()
 {
     _playerCar = _carConstructor.CreatePlayerCar(_playerManager.selectedCar, _playerManager.selectedCar.current_color);
     _playerManager.PlayerCar = _playerCar;
 }