Example #1
0
 private void OnEnable() // Инициализация компонентов
 {
     _reward          = new ScoreReward(_scoreReward);
     _inputVertical   = new UFOInput();
     _motorVertical   = new SpaceshipMotor(_inputVertical, _shipData, _rg, Direction.UP);
     _inputHorizontal = new UFOInput();
     _motorHorizontal = new SpaceshipMotor(_inputHorizontal, _shipData, _rg, Direction.RIGHT);
 }
Example #2
0
 private void OnEnable() // Инициализация компонентов
 {
     _input = new ShipInput();
     _motor = new SpaceshipMotor(_input, _shipData, rg, Direction.UP);
 }