Esempio n. 1
0
        public void OnSolutionCharButtonClicked(CharacterButton solutionCharButton)
        {
            var displayCharButton = displayCharacters[solutionCharButton.Index];

            solutionCharButton.Letter = CharacterButton.NoCharacter;
            displayCharButton.ShowLetter();
        }
Esempio n. 2
0
		private void AddNewDisplayCharToList(float xCenter, float yCenter, int index)
		{
			var newCharButton = new CharacterButton(xCenter, yCenter, this);
			newCharButton.Clicked += newCharButton.OnDisplayCharButtonClicked;
			newCharButton.Index = index;
			displayCharacters.Add(newCharButton);
		}
Esempio n. 3
0
        private void AddNewDisplayCharToList(float xCenter, float yCenter, int index)
        {
            var newCharButton = new CharacterButton(xCenter, yCenter, this);

            newCharButton.Clicked += newCharButton.OnDisplayCharButtonClicked;
            newCharButton.Index    = index;
            displayCharacters.Add(newCharButton);
        }
Esempio n. 4
0
        private void AddNewSolutionButtonToList(float xCenter, float yCenter, int index)
        {
            CharacterButton newCharButton = new CharacterButton(xCenter, yCenter, this);

            newCharButton.Clicked += newCharButton.OnSolutionCharButtonClicked;
            newCharButton.Index    = index;
            solutionCharacters.Add(newCharButton);
        }
Esempio n. 5
0
		public void OnDisplayCharButtonClicked(CharacterButton displayCharButton)
		{
			var freeButton = FindNextFreeSolutionButton();
			if (freeButton == null)
				return;
			freeButton.Letter = displayCharButton.Letter;
			freeButton.Index = displayCharButton.Index;
			displayCharButton.RemoveLetter();
			if (IsWordCorrect())
				CompleteLevel();
		}
Esempio n. 6
0
        public void OnDisplayCharButtonClicked(CharacterButton displayCharButton)
        {
            var freeButton = FindNextFreeSolutionButton();

            if (freeButton == null)
            {
                return;
            }
            freeButton.Letter = displayCharButton.Letter;
            freeButton.Index  = displayCharButton.Index;
            displayCharButton.RemoveLetter();
            if (IsWordCorrect())
            {
                CompleteLevel();
            }
        }
Esempio n. 7
0
		public void OnSolutionCharButtonClicked(CharacterButton solutionCharButton)
		{
			var displayCharButton = displayCharacters[solutionCharButton.Index];
			solutionCharButton.Letter = CharacterButton.NoCharacter;
			displayCharButton.ShowLetter();
		}
Esempio n. 8
0
		private void AddNewSolutionButtonToList(float xCenter, float yCenter, int index)
		{
			CharacterButton newCharButton = new CharacterButton(xCenter, yCenter, this);
			newCharButton.Clicked += newCharButton.OnSolutionCharButtonClicked;
			newCharButton.Index = index;
			solutionCharacters.Add(newCharButton);
		}