public void Connect(Sfs2X.Util.ConfigData config) { if (!sfs.IsConnected) { sfsConfig = config; UnityEngine.Debug.Log("Starting the connection request"); sfs.Connect(config); } else { UnityEngine.Debug.LogWarning("The Smartfox already connected"); } }
public void Connect( string host = "game01.mundodositio.globo.com", int port = 9933, string zone = "Matheus", bool debugMode = true, OnSmartfoxResponse onSFSConnection = null) { Sfs2X.Util.ConfigData config = new Sfs2X.Util.ConfigData(); config.Debug = debugMode; config.Host = host; config.Port = port; config.Zone = zone; if (onSFSConnection != null) { onConnection += onSFSConnection; } Connect(config); }