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; } } }
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); } }
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(); } } }