// =========================== MAIN METHODS ====================================== // ------------------------------------------------------------------------------- // InitAsSubZone // ------------------------------------------------------------------------------- protected void InitAsSubZone(NetworkZoneTemplate _template) { networkTransport.port = GetZonePort; networkManager.networkAddress = _template.server.ip; networkManager.onlineScene = _template.scene.SceneName; networkManager.StartServer(); }
// =========================== 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 }
// ------------------------------------------------------------------------------- // 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(); }