private void Start()
        {
            gameMemory = GameMemory.Instance;

            DeactivateAllPanels();
            SwitchActionMapTo(ActionMapUI);
            startGamePanel.SetActive(true);
            carEngine.PullHandbrake(true);

            Debug.Log("Current input devices " + string.Join(", ", InputSystem.devices));
            playerInput.onControlsChanged += input => Debug.Log("New controls are " + input.currentControlScheme);
            ActivateOnScreenInputsIfPossible();
        }
Exemple #2
0
        //[SerializeField]
        //private EdgeCollider2D spawnArea;

        private void Start()
        {
            gameMemory = GameMemory.Instance;
            Spawn();
        }