void Awake() { if (instance == null) { instance = this; } }
void Start() { playerClass = transform.GetComponent <PlayerSelectScript> (); playerNumber = playerClass.playerNumber; horizontalMove = "Horizontal" + playerNumber; verticalMove = "Vertical" + playerNumber; cursorHorizontal = "CursorHorizontal" + playerNumber; cursorVertical = "CursorVertical" + playerNumber; selectInput = "Select" + playerNumber; deselectInput = "Deselect" + playerNumber; pause = "Start" + playerNumber; }