The Input System: change "which side wins" value.

Hi, I’m using the the input system and I’m trying to change to “which side wins” value through script.
After a lot of trying I just couldn’t find the solution.

Don’t use the input system. The input system is made to capture a key that’s pressed and assign it to a value.

Instead, I recommend making a new gameobject, name it GameManager, add a C# script also named GameManager.

Now in the script, add a

public bool sideWon;

When left side won, make the value false, and when right side won then true.

I hope that helped out, if not so, tell me why, I’ll help further.