// Setting player ID to distingish between players and platforms public void SetPlayerID(string id) { playerID = id; //set team number now for easy access later if (id == "1" || id == "3") { playerStateScript.SetTeamNumber("1"); // team 1 is controllers 1 and 2 } else { playerStateScript.SetTeamNumber("2"); // team 2 is controllers 3 and 4 } movHorz = "left_analog_horizontal_" + playerID; movVert = "left_analog_vertical_" + playerID; if (isPC) { aimHorz = "right_analog_horizontal_" + playerID; aimVert = "right_analog_vertical_" + playerID; throwBumper = "r_bumper_" + playerID; dashButton = "dash_" + playerID; startButton = "Pause"; } else { aimHorz = "right_analog_horizontal_Mac_" + playerID; aimVert = "right_analog_vertical_Mac_" + playerID; throwBumper = "r_bumper_Mac_" + playerID; dashButton = "dash_Mac_" + playerID; startButton = "Pause_Mac"; } }