I was asking myself if you could change the position of a game object with the input of the player, with the new input system.
That is, with something like this:
OnMove() {
//Code to change game object's position
}
I want to make a script where the position of the game object is changed to a specific position, based on the joystick value and the WASD keys. That is, there are multiple positions the game object can go to.
This is for a top-down game where a gameobject should go to differnt places around the player. Since this gameobject is parented to the player and the gameobject is always touching the player, positions from -1 to 1 are enough.