Exemplo n.º 1
0
        /****************************************/

        private void RollDiceHandler(Object sender, RollDiceEventArgs e)
        {
            System.Console.Write("Press enter to roll dice:");
            Console.ReadLine();
            _manager.RollDice();
            if (_manager._game.IsDouble()) {
                Console.WriteLine("\nCongratulations! You've got a double, play 4 moves!");
            }
          //  _manager.isRolled = true;

        }
Exemplo n.º 2
0
 public IEnumerator OnRolledDice(object obj, RollDiceEventArgs e)
 {
     yield return(StartCoroutine(dice.Throw(e.diceNumber)));
 }
Exemplo n.º 3
0
        /****************************************/

        private void RollDiceHandler(Object sender, RollDiceEventArgs e)
        {
            //wait until this thread get a signal
            //the logic thread waits until roll button click
            mre.WaitOne();
        }
Exemplo n.º 4
0
 public void OnRolledDice(object obj, RollDiceEventArgs e)
 {
     taskManager.Add(() => {
         StartCoroutine(SafeRun(visualizer.OnRolledDice(obj, e)));
     });
 }
Exemplo n.º 5
0
 public void OnRolledDice(object obj, RollDiceEventArgs e)
 {
     Debug.LogFormat("DICE: dice {0}",
                     e.diceNumber);
 }