Ejemplo n.º 1
0
        public override void diceRollDone(int value, JSONNode TurnValue)
        {
            if (base.isTimeOn)
            {
                //showArrow.SetActive (false);
                isRotateDice     = true;
                isOpponentActive = true;
                StartCoroutine(stopRotation(value, TurnValue));

                GameDelegate.showRollDice("" + value);
                //iTween.ScaleTo (PlayerDice, iTween.Hash ("scale", new Vector3 (1.5f, 1.5f, 1.5f), "speed", 8.0f, "easetype", "linear"));
            }
        }
        public void TapDiceAction()
        {
            if (base.isTimeOn)
            {
                //GetComponent<Button> ().enabled = false;
                showArrow.SetActive(false);

                LudoDice.GetComponent <Button>().enabled = false;
                isRotateDice = true;
                GameDelegate.showRollDice("" + base.dicNumber);
                StartCoroutine(stopRotation());
                iTween.ScaleTo(PlayerDice, iTween.Hash("scale", new Vector3(1.5f, 1.5f, 1.5f), "speed", 8.0f, "easetype", "linear"));
            }
        }