コード例 #1
0
    public override void OnJoinedLobby()
    {
        networkState = BeerPongNetworkState.Connected;

        gameSession = FindObjectOfType <BP_GameSession>();
        if (gameSession)
        {
            gameSession.OnJoinedLobby();
        }
    }
コード例 #2
0
    public override void OnLeftLobby()
    {
        networkState = BeerPongNetworkState.Offline;

        gameSession.OnLeftLobby();
    }
コード例 #3
0
 public override void OnStartConnecting()
 {
     networkState = BeerPongNetworkState.Connecting;
 }
コード例 #4
0
 public override void OnStopConnecting()
 {
     networkState = BeerPongNetworkState.Offline;
 }
コード例 #5
0
    // Use this for initialization
    public void Start()
    {
        networkState = BeerPongNetworkState.Offline;

        ClientScene.RegisterPrefab(gameSessionPrefab);
    }