public virtual void OnCreateClient() { var www = new CWWW(); www.Get(SERVER_INFO, (result) => { // var info = TinyJSON.JSON.Load (result).Make <CServerInfo>(); this.networkAddress = SERVER_IP; this.networkPort = SERVER_PORT; m_CurrentClient = this.StartClient(); }, (error) => { CLog.Debug("SERVER INFO ERROR: " + error); }); }
protected virtual void OnLoadResourceFail(string version, string error) { Caching.ClearCache(); m_AssetResourceLoader.Clear(); CLog.Debug("Fail version: {0} - error {1}", version, error); }