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

            solutionCharButton.Letter = CharacterButton.NoCharacter;
            displayCharButton.ShowLetter();
        }
Beispiel #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);
		}
Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #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();
		}
Beispiel #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();
            }
        }
Beispiel #7
0
		public void OnSolutionCharButtonClicked(CharacterButton solutionCharButton)
		{
			var displayCharButton = displayCharacters[solutionCharButton.Index];
			solutionCharButton.Letter = CharacterButton.NoCharacter;
			displayCharButton.ShowLetter();
		}
Beispiel #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);
		}