Hey, I set up all the buttons for first and second pad and as far as axis goes - everything is sweet the only problem is with buttons.
Here’s how I set up the buttons
still, if any player presses a button - it’s like both of them did.
here’s the script for comparison:
var secondPlayer = false; // marked to true (I checked) if it's second player's character
private var litButtonX = "ButtonX";
function Start(){
if(secondPlayer)
litButtonX += "2";
print(litButtonX);
}
function Update () {
if(Input.GetButtonDown(litButtonX)){
Shoot();
}
}
Now, it prints “ButtonX”, “ButtonX2” alright, and the buttons seem to be set up ok,
so why is that it doesn’t matter who presses “X” - every player’s character shoots?