public void UpdateGraphics()
 {
     if (_gallowCount < _gallowSprits.Length - 1 && !_gameManangerScript.Hard)
     {
         _gallowSprits[_gallowCount].gameObject.SetActive(true);
         _gallowCount++;
         return;
     }
     if (_characterCount < _characterSprites.Length)
     {
         _characterSprites[_characterCount].gameObject.SetActive(true);
         _characterCount++;
     }
     if (_gallowCount >= _gallowSprits.Length - 1 && _characterCount >= _characterSprites.Length)
     {
         _gameManangerScript.GameIsOver("Game Over", "You failed, wanna try another word?");
         Debug.Log("No More Grahics, Game Over");
         _scoreManangerScript.AddFail();
     }
 }
예제 #2
0
    void CheckWordList(bool b)
    {
        if (b)
        {
            Debug.Log("Word Completet");
            _gameManangerScript.GameIsOver("Victory", "You completed the word, wanna try one more?");
            //WordList.Remove(ActiveWord);

            /*if (WordList.Count <= 0)
             * {
             *  Debug.Log("No more words");
             *  _gameManangerScript.GameIsOver("Game Over", "There is no words. cause word list is empty.");
             *  return;
             * }
             * ChooseWord();*/
        }
        else
        {
            Debug.Log("Word not complete");
        }
        _inputManangerScript.ClearInputFields();
    }