protected virtual void OnCreateOrJoinGame(CreateOrJoinGameResponse e) { WaitingView.Instance.Close(); if (EventCreateOrJoinGame != null) { //Debug.Log(LogEvent(EventCreateOrJoinGame)); EventCreateOrJoinGame(e); } }
public void OnCreateOrJoinGameResponse(CreateOrJoinGameResponse evt) { if (evt.Successful) { return; // all is well, will handle the event with the join room event } waitingMessage = evt.Error.ToString(); inGame = false; Debug.Log(waitingMessage); showReturnToLobbyButton = true; }