Esempio n. 1
0
    private void Awake()
    {
        _pushButtons = new GameInput.PushButton[] {
            new GameInput.PushButton(KeyCode.D, moveRight),
            new GameInput.PushButton(KeyCode.A, moveLeft),
            new GameInput.PushButton(KeyCode.W, moveUp),
            new GameInput.PushButton(KeyCode.S, moveDown),
            new GameInput.PushButton(KeyCode.Space, spawnRocket)
        };

        attachActionsScanner(_replayRecorder);
        _replayRecorder.startNewRecording();
    }
Esempio n. 2
0
    private void Awake()
    {
        _playReplayPushButton = new GameInput.PushButton(KeyCode.Q, performTest);

        _startingPlayerSpaceShipPosition = _playerSpaceShip.transform.position;
    }