예제 #1
0
        // =========================== MAIN METHODS ======================================

        // -------------------------------------------------------------------------------
        // InitAsSubZone
        // -------------------------------------------------------------------------------
        protected void InitAsSubZone(NetworkZoneTemplate _template)
        {
            networkTransport.port         = GetZonePort;
            networkManager.networkAddress = _template.server.ip;
            networkManager.onlineScene    = _template.scene.SceneName;
            networkManager.StartServer();
        }
예제 #2
0
        // =========================== MAIN METHODS ======================================

        // -------------------------------------------------------------------------------
        // InitAsSubZone
        // -------------------------------------------------------------------------------
        protected void InitAsSubZone(NetworkZoneTemplate _template)
        {
            networkTransport.port         = GetZonePort;
            networkManager.networkAddress = _template.server.ip;
            networkManager.onlineScene    = _template.scene.SceneName;
            networkManager.StartServer();

            debug.LogFormat(this.name, nameof(InitAsSubZone), _template.name);     //DEBUG
        }
예제 #3
0
 // -------------------------------------------------------------------------------
 // InitAsSubZone
 // -------------------------------------------------------------------------------
 protected void InitAsSubZone(NetworkZoneTemplate _template, int zoneIndex)
 {
     isSubZone                  = true;
     zoneName                   = _template.title;
     zoneTimeoutMultiplier      = _template.zoneTimeoutMultiplier;
     networkTransport.port      = (ushort)(originalPort + zoneIndex);
     networkManager.onlineScene = _template.scene.SceneName;
     networkManager.StartServer();
 }