예제 #1
0
        IEnumerator stopRotation()
        {
            yield return(new WaitForSeconds(0.5f));

            isRotation = false;
            enable     = false;
            transform.GetComponent <Image>().sprite = Resources.Load <Sprite>("Dices/dice_" + this.number);
            LudoDelegate.diceRollDone(this.currentPlayer, this.number);
            //transform.gameObject.SetActive(false);
        }