示例#1
0
        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;
                }
            }
        }
示例#2
0
        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);
        }