void OnEnable() { spawnPoses[0] = playerPositions[0].position; spawnPoses[1] = playerPositions[1].position; InputManager.OnDeviceDetached += OnDeviceDetached; keyboardListener = PlayerActions.CreateWithKeyboardBindings(); joystickListener = PlayerActions.CreateWithJoystickBindings(); }
void OnEnable() { InputManager.OnDeviceDetached += OnDeviceDetached; keyboardListener = PlayerActions.CreateWithKeyboardBindings(); joystickListener = PlayerActions.CreateWithJoystickBindings(); }