Beispiel #1
0
 public override void SceneLoadRemoteDone(BoltConnection connection)
 {
     if (BoltNetwork.isServer)
     {
         A2SManager.SetPlayerInfo(connection, "Conn: " + connection.ConnectionId.ToString());
     }
 }
        public override void SceneLoadRemoteDone(BoltConnection connection, Bolt.IProtocolToken token)
        {
            BoltLog.Info("SceneLoadRemoteDone-Token: {0}", token);

            if (BoltNetwork.isServer)
            {
                A2SManager.SetPlayerInfo(connection, connection.ConnectionId.ToString());
            }
        }
Beispiel #3
0
    public override void SceneLoadLocalDone(string map)
    {
        BoltConsole.Write("Spawn Player on map " + map, Color.yellow);
        BomberPlayerController.Spawn();

        if (BoltNetwork.isServer)
        {
            A2SManager.SetPlayerInfo(null, "Photon Server");

            A2SManager.UpdateServerInfo(
                gameName: "Bolt Simple Tutorial",
                serverName: "Photon Bolt Server",
                map: map,
                version: "1.0",
                serverType: ServerType.Listen,
                visibility: Visibility.PUBLIC
                );
        }
    }
        public override void SceneLoadLocalDone(string map)
        {
            // ui
            GameUI.Instantiate();

            // camera
            PlayerCamera.Instantiate();

            if (BoltNetwork.isServer)
            {
                A2SManager.SetPlayerInfo(null, "SERVER");

                A2SManager.UpdateServerInfo(
                    gameName: "Bolt Advanced Tutorial",
                    serverName: "Photon Bolt Server",
                    map: map,
                    version: "1.0",
                    serverType: ServerType.Listen,
                    visibility: Visibility.PUBLIC
                    );
            }
        }