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

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