public void clickDie(string dieName) { print("clickDie(string dieName)"); int dieID = int.Parse(dieName.Substring(3, 1)); int i = dieID - 1; if (lockedArray [i] != 2) { if (lockedArray [i] == 1) { lockedArray [i] = 0; } else { lockedArray [i] = 1; } changeSelected(); } diceController.moveDie(dieID); }