public void getDiceRoll() { if (!inMove) { getDadu = DC.PutarDadu(); AC.playSFX(3); StartCoroutine(playDiceAnim()); ButtonMaju.SetActive(false); } }
public void moveToNext() { getDadu = DC.PutarDadu(); QG.yourScore += 1; if (currentPos + 1 + getDadu < TC.Tiles.Length) { currentPos += getDadu; //this.transform.position = TC.Tiles [currentPos].transform.position; DiceShow.text = "" + getDadu; } else { print("Finish"); } }