void Skip() { //ReChoices soundManager.PlaySoundSkip(); unSelectWords = words.ToList <Word>(); unSelectChoices = words.ToList <Word>(); //RandomWord With Not Same int randomWordIndex = Random.Range(0, unSelectWords.Count); while (currentWord.wordTh == unSelectWords[randomWordIndex].wordTh) { randomWordIndex = Random.Range(0, unSelectWords.Count); } currentWord = unSelectWords [randomWordIndex]; WordText.text = currentWord.wordEng; currentIndexWord = randomWordIndex; //SetChoice SetChoiceList(); //SetDmg enemy.enemyDmg = Mathf.RoundToInt(enemy.enemyDmg * 0.7f); enemy.attack(); }
void Skip() { //ReChoices soundManager.PlaySoundSkip(); //ReWord unSelectPictures = pics.ToList <Picture>(); unSelectChoices = pics.ToList <Picture>(); //RandomWord With Not Same int randomPictureIndex = Random.Range(0, unSelectPictures.Count); while (currentPicture.wordTh == unSelectPictures[randomPictureIndex].wordTh) { randomPictureIndex = Random.Range(0, unSelectPictures.Count); } currentPicture = unSelectPictures [randomPictureIndex]; image.sprite = currentPicture.picture; currentIndexPicture = randomPictureIndex; //SetChoice SetChoiceList(); //SetDmg enemy.enemyDmg = Mathf.RoundToInt(enemy.enemyDmg * 0.7f); enemy.attack(); }