private void AddCharacterFill(char character) { for (int i = 0; i < keyDoorCharacterFillList.Count; i++) { KeyDoorCharacterFill doorCharacterFill = keyDoorCharacterFillList[i]; if (doorCharacterFill.fillCharacter == ' ') { doorCharacterFill.SetUpKeyDoorCharacterFill(character, false); break; } } }
private void SetCharacterAsHint(char character, int index) { for (int i = 0; i < characterButtons.Length; i++) { KeyDoorCharacterButton characterButton = characterButtons[i]; if (characterButton.character == character && characterButton.characterButton.interactable) { characterButton.SetToHint(); break; } } KeyDoorCharacterFill keyDoorCharacterFill = keyDoorCharacterFillList[index]; keyDoorCharacterFill.SetUpKeyDoorCharacterFill(character, true); }