public override void OnJoinedLobby() { networkState = BeerPongNetworkState.Connected; gameSession = FindObjectOfType <BP_GameSession>(); if (gameSession) { gameSession.OnJoinedLobby(); } }
public override void OnLeftLobby() { networkState = BeerPongNetworkState.Offline; gameSession.OnLeftLobby(); }
public override void OnStartConnecting() { networkState = BeerPongNetworkState.Connecting; }
public override void OnStopConnecting() { networkState = BeerPongNetworkState.Offline; }
// Use this for initialization public void Start() { networkState = BeerPongNetworkState.Offline; ClientScene.RegisterPrefab(gameSessionPrefab); }