예제 #1
0
        private void RemoveCharacterFill(char character)
        {
            for (int i = 0; i < keyDoorCharacterFillList.Count; i++)
            {
                KeyDoorCharacterFill doorCharacterFill = keyDoorCharacterFillList[i];

                if (doorCharacterFill.fillCharacter == character && !doorCharacterFill.fix)
                {
                    doorCharacterFill.Reset();
                    break;
                }
            }
        }
예제 #2
0
        private void SetUpKeyDoorCharacterFill(HLHWord word)
        {
            keyDoorCharacterFillList.Clear();

            char[] characters = word.spell.ToCharArray();

            for (int i = 0; i < word.wordLength; i++)
            {
                KeyDoorCharacterFill keyDoorCharacter = keyDoorCharacterPool.GetInstance <KeyDoorCharacterFill>(keyDoorCharacterModel.gameObject, keyDoorCharacterContainer);

                keyDoorCharacter.Reset();

                keyDoorCharacterFillList.Add(keyDoorCharacter);
            }
        }
예제 #3
0
        public void OnRefreshButtonClick()
        {
            for (int i = 0; i < filledIndex.Count; i++)
            {
                int index = filledIndex[i];

                KeyDoorCharacterButton characterButton = characterButtons[index];

                characterButton.ResetOnRefresh();
            }

            for (int i = 0; i < keyDoorCharacterFillList.Count; i++)
            {
                KeyDoorCharacterFill keyDoorCharacterFill = keyDoorCharacterFillList[i];
                if (!keyDoorCharacterFill.fix)
                {
                    keyDoorCharacterFill.Reset();
                }
            }
        }