void MatchTimerStartedEventListener(MatchTimerStartedEvent e) { // Now that the timer has started, we should create the match object and then start playing the actual match. var match = CreateMatch(); if (!_refereeController.ValidateStartMatch(match)) { print("not allowed to start"); // Match is not allowed to start, throw the end match event. EventManager.Instance.Raise(new EndMatchEvent(match)); return; } matchControllerBehaviour.StartMatch(match); }
void MatchTimerStartedListener(MatchTimerStartedEvent e) { gameObject.SetActive(false); }