public void ShowHiddenChess(ChessController chess, string newName) { Dictionary<string, Sprite> lsImageSource; if (chess.color == (int)ChessColor.BLUEHIDDEN) { lsImageSource = lsImageBlue; } else{ lsImageSource = lsImageRed; } chess.GetComponent<Image> ().sprite = lsImageSource [newName]; chess._name = newName; chess.color = chess.color % 10; }