Hi,
I have a problem with INPUT MANAGER (the “old” one)! I wanted to play with the new input, and since then some weird messages:
"
InvalidOperationException: You are trying to read Input using the UnityEngine.Input class, but you have switched active Input handling to Input System package in Player Settings.
UnityEngine.Input.GetKey (UnityEngine.KeyCode key) (at <18652b5914b14e07a74076a4608f13e3>:0)
PlayerMove.PlayerMoveKeyboard () (at Assets/Scripts/PlayerMove.cs:194)
PlayerMove.Update () (at Assets/Scripts/PlayerMove.cs:40)"
and it don’t work.
private void PlayerMoveKeyboard()
{
if(Input.GetKey(KeyCode.Space))
{
Debug.Log(“Shoot!”);
}
}
I’ve have tried to “KetCode.Space” with other key.
Regard
Soeren