Exemplo n.º 1
0
 private void OnEndBallEvent(EndBallEvent evt)
 {
     if (state == States.EndBall)
     {
         state = States.NewBall;
     }
 }
Exemplo n.º 2
0
        private void OnEndBallEvent(EndBallEvent evt)
        {
            if (!(bool)evt.GetData())
            {
                return;
            }

            wickets++;
            EventManager.Instance.TriggerEvent(new UpdateScoreUIEvent(wickets));
        }