private void OnEndBallEvent(EndBallEvent evt) { if (state == States.EndBall) { state = States.NewBall; } }
private void OnEndBallEvent(EndBallEvent evt) { if (!(bool)evt.GetData()) { return; } wickets++; EventManager.Instance.TriggerEvent(new UpdateScoreUIEvent(wickets)); }