예제 #1
0
 public void RemoveLetterDisplayed()
 {
     display.RemoveLetter();
     if (display.AllLettersRemoved())
     {
         display.RemoveWord();
     }
 }
예제 #2
0
파일: Word.cs 프로젝트: ckbeddow/LD41
    public bool WordTyped()
    {
        bool wordTyped = (typeIndex >= word.Length);

        if (wordTyped)
        {
            display.RemoveWord();
        }
        return(wordTyped);
    }
예제 #3
0
    public bool IsWordTyped()
    {
        var isTyped = _index == _word.Length;

        if (isTyped)
        {
            _wordDisplay.RemoveWord();
        }

        return(isTyped);
    }
예제 #4
0
 public void destroyShip()
 {
     if (display.GetSpriteRenderer() != null)
     {
         display.GetSpriteRenderer().sprite = display.getSprite();
         display.RemoveWord();
         isDestroyed = true;
     }
 }
예제 #5
0
    public bool WordTyped()
    {
        bool wordTyped = (_index >= word.Length);

        if (wordTyped)
        {
            _wordDisplay.RemoveWord();
        }
        return(wordTyped);
    }
예제 #6
0
    public bool wordTyped()
    {
        bool typed = typeIndex >= word.Length - 1;

        if (typed)
        {
            display.RemoveWord();
        }
        return(typed);
    }
    public bool WordTyped()
    {
        bool wordTyped = (typeIndex >= word.Length);

        if (wordTyped)
        {
            display.RemoveWord();//Remove the word on the screen
        }
        return(wordTyped);
    }
예제 #8
0
파일: Word.cs 프로젝트: DjBee0312/WordGame
    public bool WordTyped()
    {
        bool wordTyped = (indexOfChar >= word.Length);

        //Debug.Log("wordTyped " + wordTyped);
        if (wordTyped)
        {
            display.RemoveWord();
        }
        return(wordTyped);
    }
예제 #9
0
    public bool WordTyped()
    {   //bekijkt of het hele woord is getypt
        bool wordTyped = (typeIndex >= word.Length);

        if (wordTyped) // als het woord is getypt
        {
            display.RemoveWord();
            //verwijder het woord van het scherm
        }
        return(wordTyped);
    }
예제 #10
0
파일: Word.cs 프로젝트: Magurolab/TypeTris
    public bool HasTyped()
    {
        bool done = i >= word.Length;

        if (done)
        {
            //good bye word
            display.RemoveWord();
        }
        return(done);
    }
예제 #11
0
    public bool WordTyped()
    {
        bool wordTyped = (typeIndex >= word.Length);

        if (wordTyped)
        {
            display.RemoveWord();
            //ilangin kata dari layar
        }
        return(wordTyped);
    }
예제 #12
0
    public bool WordTyped()
    {
        bool wordTyped = (typeIndex >= word.Length);

        if (wordTyped)
        {
            Score.CurrentScore++;
            display.RemoveWord();
        }
        return(wordTyped);
    }
예제 #13
0
    public bool WordTyped()
    {
        bool wordTyped = (typeIndex >= word.Length);

        if (wordTyped)
        {
            display.RemoveWord();
        }

        //Destroy(gameObject, 7f);
        return(wordTyped);
    }
예제 #14
0
 public bool WordTyped()
 {
     if (typeIndex >= word.Length)
     {
         display.RemoveWord();
         return(true);
     }
     else
     {
         return(false);
     }
 }
예제 #15
0
    public bool WordTyped()
    {
        bool wordTyped = (currentTypedIndex >= word.Length - 1);

        if (wordTyped)
        {
            // Remove the word on screen
            display.RemoveWord();
        }

        return(wordTyped);
    }
예제 #16
0
    public bool wordTyped()
    {
        bool wordTyped = (index >= text.Length);

        if (wordTyped)
        {
            //remove word on screen
            display.RemoveWord();
        }

        return(wordTyped);
    }
예제 #17
0
    public bool WordTyped()
    {
        bool wordTyped = (typeIndex >= romaji.Length);         // Checks if the whole word has been typed

        if (wordTyped)
        {
            display.RemoveWord();              // Remove the whole object on screen
        }
        else
        {
            display.Highlighter();
        }
        return(wordTyped);
    }
예제 #18
0
파일: Word.cs 프로젝트: Quenix/Typing-Game
    public bool WordTyped()
    {
        try
        {
            bool wordTyped = (typeIndex >= word.Length);
            if (wordTyped)
            {
                display.RemoveWord();
            }

            return(wordTyped);
        }
        catch (Exception e)
        {
            return(true);
        }
    }
예제 #19
0
    // Executes whenever a word has been typed in completely
    public bool WordTyped()
    {
        bool wordTyped = (typeIndex >= word.Length);

        if (wordTyped)
        {
            // Triggers Die animation on enemies or destroys projectile
            if (worldObject && !worldObject.CompareTag("Projectile"))
            {
                display.RemoveWord();
                worldObject.GetComponent <EnemyBehaviour>().Die();
            }
            else
            {
                // display.RemoveWord() will be called from objects script
                worldObject.GetComponent <RockMoss>().Delete();
            }
        }
        return(wordTyped);
    }
예제 #20
0
 public void Destroy()
 {
     display.RemoveWord();
 }
예제 #21
0
 public void RemoveWord()
 {
     display.RemoveWord();
 }