| | |
| | |
|
| | | ExternalStorePath = Application.persistentDataPath + "/";
|
| | |
|
| | | DesignDebug.Log("Stream Path: " + StreamingAssetPath);
|
| | | DesignDebug.Log("External Path: " + ExternalStorePath);
|
| | | DebugEx.Log("Stream Path: " + StreamingAssetPath);
|
| | | DebugEx.Log("External Path: " + ExternalStorePath);
|
| | | }
|
| | | }
|
| | |
| | | } |
| | | static public void LogWarning(string message) |
| | | { |
| | | DesignDebug.LogWarning("AssetBundleBrowser: " + message); |
| | | DebugEx.LogWarning("AssetBundleBrowser: " + message); |
| | | } |
| | | |
| | | static public Texture2D GetFolderIcon() |
| | |
| | | else |
| | | { |
| | | if (onlyOverlappedAssets) |
| | | DesignDebug.LogWarning("There were no duplicated assets that existed across all selected bundles."); |
| | | DebugEx.LogWarning("There were no duplicated assets that existed across all selected bundles."); |
| | | else |
| | | DesignDebug.LogWarning("No duplicate assets found after refreshing bundle contents."); |
| | | DebugEx.LogWarning("No duplicate assets found after refreshing bundle contents."); |
| | | } |
| | | } |
| | | |
| | |
| | | if (File.Exists(f)) |
| | | m_BundleList.Add(f); |
| | | else |
| | | DesignDebug.Log("Expected bundle not found: " + f + ". Note: Browser does not yet support inspecting bundles with hash appended."); |
| | | DebugEx.Log("Expected bundle not found: " + f + ". Note: Browser does not yet support inspecting bundles with hash appended."); |
| | | } |
| | | } |
| | | |
| | |
| | | var root = new TreeViewItem(-1, -1); |
| | | root.children = new List<TreeViewItem>(); |
| | | if (m_InspectTab == null) |
| | | DesignDebug.Log("Unknown problem in AssetBundle Browser Inspect tab. Restart Browser and try again, or file ticket on github."); |
| | | DebugEx.Log("Unknown problem in AssetBundle Browser Inspect tab. Restart Browser and try again, or file ticket on github."); |
| | | else |
| | | { |
| | | foreach (var b in m_InspectTab.BundleList) |
| | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | DesignDebug.LogError(e.Message); |
| | | DebugEx.LogError(e.Message); |
| | | } |
| | | return val; |
| | | } |
| | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | DesignDebug.Log(e.Message); |
| | | DebugEx.Log(e.Message); |
| | | } |
| | | return textBuilder.ToString(); |
| | | } |
| | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | DesignDebug.Log(e.Message); |
| | | DebugEx.Log(e.Message); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | DesignDebug.Log(e.Message); |
| | | DebugEx.Log(e.Message); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | DesignDebug.Log(e.Message); |
| | | DebugEx.Log(e.Message); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception) |
| | | { |
| | | DesignDebug.LogErrorFormat("字符串不能转为数值{0} {1}", leftValue, rightValue); |
| | | DebugEx.LogErrorFormat("字符串不能转为数值{0} {1}", leftValue, rightValue); |
| | | } |
| | | switch (operatorType) |
| | | { |
| | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | DesignDebug.Log(e.Message); |
| | | DebugEx.Log(e.Message); |
| | | } |
| | | return false; |
| | | } |
| | |
| | | var businessInstance = _business.Assembly.CreateInstance(_business.Name) as DtcBasic;
|
| | | if (packToBusinessTable.ContainsKey(packInstance.cmd))
|
| | | {
|
| | | DesignDebug.LogFormat("重复封包登记: {0}!", _pack.Name);
|
| | | DebugEx.LogFormat("重复封包登记: {0}!", _pack.Name);
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.LogError(ex);
|
| | | DebugEx.LogError(ex);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | #if UNITY_EDITOR
|
| | | NetPkgCtl.AddNetPkg(vStr, NetPkgType.Server, string.Empty, string.Empty, null);
|
| | | DesignDebug.LogErrorFormat("C#层收到未登记的解包协议:{0},{1}", vCmdBytes[0].ToString("x2"), vCmdBytes[1].ToString("x2"));
|
| | | DebugEx.LogErrorFormat("C#层收到未登记的解包协议:{0},{1}", vCmdBytes[0].ToString("x2"), vCmdBytes[1].ToString("x2"));
|
| | | #endif
|
| | | }
|
| | | return null;
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | DesignDebug.LogError("收到未定义的解包协议:" + vBytes[0].ToString("x2").ToUpper() + "," + vBytes[1].ToString("x2").ToUpper());
|
| | | DebugEx.LogError("收到未定义的解包协议:" + vBytes[0].ToString("x2").ToUpper() + "," + vBytes[1].ToString("x2").ToUpper());
|
| | | }
|
| | | return vNetPackInst;
|
| | | }
|
| | |
| | | SoundPlayer.Instance.PlayLoginMusic();
|
| | | SystemSetting.Instance.SetSoundVolume(SystemSetting.Instance.GetSoundVolume());
|
| | |
|
| | | DesignDebug.Init();
|
| | | SDKUtility.Instance.Init();
|
| | | GameObjectPoolManager.Instance.gameObject.name = "GameObjectPool";
|
| | | GameObjectPoolManager.Instance.Initialize();
|
| | |
| | | var memory = 2048;
|
| | | DeviceUtility.GetCpuAndMemory(out cpu, out memory);
|
| | |
|
| | | DesignDebug.LogFormat("获得机器信息:cpu {0}----内存 {1}", cpu, memory);
|
| | | DebugEx.LogFormat("获得机器信息:cpu {0}----内存 {1}", cpu, memory);
|
| | |
|
| | | var startTime = Time.time;
|
| | | OperationLogCollect.Instance.RecordLauchEvent(1);
|
| | |
| | | Directory.CreateDirectory(destDirectoryName);
|
| | | }
|
| | |
|
| | | DesignDebug.LogFormat("拷贝文件:{0}", fileInfo.Name);
|
| | | DebugEx.LogFormat("拷贝文件:{0}", fileInfo.Name);
|
| | | File.Copy(fileInfo.FullName, destPath, true);
|
| | | index++;
|
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | }
|
| | | finally
|
| | | {
|
| | |
| | | DirtyWordConfig.Init();
|
| | | NewBieCenter.Instance.Init();
|
| | |
|
| | | DesignDebug.LogFormat("解析配置表耗时:{0}", Time.time - startTime);
|
| | | DebugEx.LogFormat("解析配置表耗时:{0}", Time.time - startTime);
|
| | | completed = true;
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | catch (Exception ex)
|
| | | {
|
| | | _task.state = TaskState.ReadFileFailure;
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | }
|
| | | finally
|
| | | {
|
| | |
| | | catch (Exception ex)
|
| | | {
|
| | | _task.state = TaskState.ParseFailure;
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | }
|
| | | finally
|
| | | {
|
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | }
|
| | | finally
|
| | | {
|
| | |
| | | var token = typeof(T).MetadataToken;
|
| | | if (configDictionary.ContainsKey(token) == false)
|
| | | {
|
| | | DesignDebug.LogErrorFormat("not find the config:{0}", token);
|
| | | DebugEx.LogErrorFormat("not find the config:{0}", token);
|
| | | return null;
|
| | | }
|
| | |
|
| | |
| | | var dic = configDictionary[token];
|
| | | if (!dic.ContainsKey(_dwTemplateID))
|
| | | {
|
| | | DesignDebug.LogFormat("not find the config:{0},<color=#ff0000ff>ID:{1}</color>", typeof(T).Name, _dwTemplateID);
|
| | | DebugEx.LogFormat("not find the config:{0},<color=#ff0000ff>ID:{1}</color>", typeof(T).Name, _dwTemplateID);
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | var token = typeof(T).MetadataToken;
|
| | | if (!configDictionary.ContainsKey(token))
|
| | | {
|
| | | DesignDebug.LogErrorFormat("not find the dic of config: {0}", typeof(T).Name);
|
| | | DebugEx.LogErrorFormat("not find the dic of config: {0}", typeof(T).Name);
|
| | | return null;
|
| | | }
|
| | |
|
| | |
| | | var token = typeof(T).MetadataToken;
|
| | | if (!configDictionary.ContainsKey(token))
|
| | | {
|
| | | DesignDebug.LogErrorFormat("not find the dic of config: {0}", typeof(T).Name);
|
| | | DebugEx.LogErrorFormat("not find the dic of config: {0}", typeof(T).Name);
|
| | | return null;
|
| | | }
|
| | |
|
| | |
| | | break;
|
| | | case PlayerDataRefresh.HappyPoint:
|
| | | baseData.HappyPoint = value;
|
| | | DesignDebug.LogError("脱机挂时间" + (int)value);
|
| | | DebugEx.LogError("脱机挂时间" + (int)value);
|
| | | break;
|
| | | case PlayerDataRefresh.MapID:
|
| | | baseData.MapID = (ushort)value;
|
| | |
| | | break;
|
| | | case PlayerDataRefresh.Tick:
|
| | | #if UNITY_EDITOR
|
| | | DesignDebug.LogFormat("---- 收到服务端Tick: {0}", value);
|
| | | DebugEx.LogFormat("---- 收到服务端Tick: {0}", value);
|
| | |
|
| | | if (extersion.Tick != 0)
|
| | | {
|
| | | uint _curWorldTick = GetWorldTick();
|
| | | uint _diffValue = value > _curWorldTick ? value - _curWorldTick : _curWorldTick - value;
|
| | | DesignDebug.LogFormat(" |-------- 当前客户端Tick: {0}, 差异: {1}", _curWorldTick, _diffValue);
|
| | | DebugEx.LogFormat(" |-------- 当前客户端Tick: {0}, 差异: {1}", _curWorldTick, _diffValue);
|
| | | if (_diffValue > 5000)
|
| | | {
|
| | | DesignDebug.LogFormat(" |-------- <color=red>收到服务端WorldTick与当前的客户端Tick差异超过5秒</color>");
|
| | | DebugEx.LogFormat(" |-------- <color=red>收到服务端WorldTick与当前的客户端Tick差异超过5秒</color>");
|
| | | }
|
| | | }
|
| | | #endif
|
| | |
| | | }
|
| | | catch (Exception e)
|
| | | {
|
| | | DesignDebug.Log(e.Message);
|
| | | DebugEx.Log(e.Message);
|
| | | }
|
| | | }
|
| | | cursor = cursor + wordlenght;
|
| | |
| | | if (cfg != null) { |
| | | return cfg.name; |
| | | } |
| | | DesignDebug.LogError(string.Format("表格中没有{0}职业{1}阶级对应的名称", occupa, classLv)); |
| | | DebugEx.LogError(string.Format("表格中没有{0}职业{1}阶级对应的名称", occupa, classLv)); |
| | | return string.Empty; |
| | | } |
| | | } |
| | |
| | | }
|
| | | else
|
| | | {
|
| | | DesignDebug.LogError("重复的装备位置ID:" + pos);
|
| | | DebugEx.LogError("重复的装备位置ID:" + pos);
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | return type;
|
| | | }
|
| | | }
|
| | | DesignDebug.LogError("未找到的装备位置:" + pos);
|
| | | DebugEx.LogError("未找到的装备位置:" + pos);
|
| | | return -1;
|
| | | }
|
| | | #endregion
|
| | |
| | | }
|
| | | catch (System.Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex.ToString() + refineIDStr.ToString());
|
| | | DebugEx.Log(ex.ToString() + refineIDStr.ToString());
|
| | | }
|
| | |
|
| | | if (!s_treasureIDRefineModelDict.ContainsKey(TreasureID))
|
| | |
| | | { |
| | | if (!Instance._virtualAxisDictionary[virtualAxis.Name].Remove(virtualAxis)) |
| | | { |
| | | DesignDebug.LogError("Requested axis " + virtualAxis.Name + " exists, but there's no such virtual axis that you're trying to unregister"); |
| | | DebugEx.LogError("Requested axis " + virtualAxis.Name + " exists, but there's no such virtual axis that you're trying to unregister"); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | DesignDebug.LogError("Trying to unregister an axis " + virtualAxis.Name + " that was never registered"); |
| | | DebugEx.LogError("Trying to unregister an axis " + virtualAxis.Name + " that was never registered"); |
| | | } |
| | | } |
| | | |
| | |
| | | if (tmpMaterialArray[j].shader.name.Contains("T4M 4 Textures")) { |
| | | Shader tmpShader = Shader.Find("T4MShaders/ShaderModel2/Diffuse/T4M 4 Textures"); |
| | | if (tmpShader == null) { |
| | | DesignDebug.Log("tmpShader is Null"); |
| | | DebugEx.Log("tmpShader is Null"); |
| | | continue; |
| | | } |
| | | tmpMaterialArray[j].shader = tmpShader; |
| | |
| | | } |
| | | |
| | | #if UNITY_EDITOR |
| | | DesignDebug.LogFormat("------------ 0102 =>玩家ID: {0}, 职业: {1}, 地图: {2}", vNetData.PlayerID, vNetData.Job, vNetData.MapID);
|
| | | DebugEx.LogFormat("------------ 0102 =>玩家ID: {0}, 职业: {1}, 地图: {2}", vNetData.PlayerID, vNetData.Job, vNetData.MapID);
|
| | | #endif
|
| | | DEBUG_STEP = 2;
|
| | |
|
| | |
| | | try
|
| | | {
|
| | | H0104_tagServerDisconnect vNetData = vNetPack as H0104_tagServerDisconnect;
|
| | | DesignDebug.Log("DTC0104_tagServerDisconnect" + vNetData.Reason);
|
| | | DebugEx.Log("DTC0104_tagServerDisconnect" + vNetData.Reason);
|
| | |
|
| | | GameNetSystem.Instance.LoginOut();
|
| | | ModelCenter.Instance.GetModel<LoginModel>().busy = false;
|
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | |
| | | H0212_tagNotifyCode vNetData = vNetPack as H0212_tagNotifyCode; |
| | | SysNotifyMgr.Instance.ReceiveNotifyCode(vNetData); |
| | | DesignDebug.Log(vNetData.Msg); |
| | | DebugEx.Log(vNetData.Msg); |
| | | |
| | | } |
| | | |
| | |
| | |
|
| | | #if UNITY_EDITOR
|
| | | string _content = string.Format("DTC0401_tagPlayerMapInit => 服务器地图 {0} 加载完毕, 人物坐标:{1}", vNetData.MapID, new Vector2(vNetData.PosX, vNetData.PosY));
|
| | | DesignDebug.Log(_content);
|
| | | DebugEx.Log(_content);
|
| | | RuntimeLogUtility.AddLog_Blue(_content, PlayerDatas.Instance.PlayerId);
|
| | | #endif
|
| | | PlayerDatas.Instance.baseData.PosX = vNetData.PosX;
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | DesignDebug.LogFormat("DTC0405_tagPlayerDisappear => 找不到{0}.", vNetData.Players[i]);
|
| | | DebugEx.LogFormat("DTC0405_tagPlayerDisappear => 找不到{0}.", vNetData.Players[i]);
|
| | | }
|
| | |
|
| | | }
|
| | |
| | |
|
| | | if (_actor == null)
|
| | | {
|
| | | DesignDebug.LogWarningFormat("H0407_tagNPCDisappear => Npc找不到: {0}", vNetData.NPCID[i]);
|
| | | DebugEx.LogWarningFormat("H0407_tagNPCDisappear => Npc找不到: {0}", vNetData.NPCID[i]);
|
| | | continue;
|
| | | }
|
| | |
|
| | |
| | |
|
| | | if (_actor == null)
|
| | | {
|
| | | DesignDebug.LogWarningFormat("DTC0501_tagObjMove => 找不到ID为: {0} 的对象", vNetData.ObjID);
|
| | | DebugEx.LogWarningFormat("DTC0501_tagObjMove => 找不到ID为: {0} 的对象", vNetData.ObjID);
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | | |
| | | if (_actor == null) |
| | | { |
| | | DesignDebug.LogWarningFormat("DTC0502_tagObjStopMove => 找不到Id为: {0} 的npc", vNetData.ObjID); |
| | | DebugEx.LogWarningFormat("DTC0502_tagObjStopMove => 找不到Id为: {0} 的npc", vNetData.ObjID); |
| | | return; |
| | | } |
| | | |
| | |
| | |
|
| | | if (_actor == null)
|
| | | {
|
| | | DesignDebug.LogFormat("DTC0602_tagObjBaseAttack => 发动攻击者为空: {0}", vNetData.AttackerID);
|
| | | DebugEx.LogFormat("DTC0602_tagObjBaseAttack => 发动攻击者为空: {0}", vNetData.AttackerID);
|
| | | return;
|
| | | }
|
| | |
|
| | | if (_target == null)
|
| | | {
|
| | | DesignDebug.LogFormat("DTC0602_tagObjBaseAttack => 被攻击者为空: {0}", vNetData.ObjID);
|
| | | DebugEx.LogFormat("DTC0602_tagObjBaseAttack => 被攻击者为空: {0}", vNetData.ObjID);
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | | base.Done(vNetPack); |
| | | |
| | | H0707_tagItemCountRefresh vNetData = vNetPack as H0707_tagItemCountRefresh; |
| | | DesignDebug.Log(707 + "刷新数量"); |
| | | DebugEx.Log(707 + "刷新数量"); |
| | | |
| | | model.WingsItemCount(vNetData.ItemIndex, vNetData.ItemCount); |
| | | playerPack.RefreshItemCount(vNetData); |
| | |
| | | base.Done(vNetPack); |
| | | H3201_tagGMCmdAnswer vNetData = vNetPack as H3201_tagGMCmdAnswer; |
| | | if (vNetData != null) { |
| | | DesignDebug.Log("----------------- " + vNetData.Answer); |
| | | DebugEx.Log("----------------- " + vNetData.Answer); |
| | | } |
| | | } |
| | | |
| | |
| | | H3202_tagServerResponse vNetData = vNetPack as H3202_tagServerResponse; |
| | | |
| | | if (vNetData != null) { |
| | | DesignDebug.LogFormat("---------- 收到服务端信息: {0}", vNetData.Message); |
| | | DebugEx.LogFormat("---------- 收到服务端信息: {0}", vNetData.Message); |
| | | MessageWin.Inst.RevGMMsg(vNetData.Message); |
| | | } |
| | | #endif |
| | |
| | | } |
| | | else |
| | | { |
| | | DesignDebug.LogError("(line:189) 字节包数据量不足"); |
| | | DebugEx.LogError("(line:189) 字节包数据量不足"); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | DesignDebug.LogError("请指定正确的数据源类型"); |
| | | DebugEx.LogError("请指定正确的数据源类型"); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | |
| | | } |
| | | else |
| | | { |
| | | DesignDebug.LogError("请指定正确的数据源类型"); |
| | | DebugEx.LogError("请指定正确的数据源类型"); |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | else |
| | | { |
| | | DesignDebug.LogError("请指定正确的数据源类型"); |
| | | DebugEx.LogError("请指定正确的数据源类型"); |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | else |
| | | { |
| | | DesignDebug.LogError("请指定正确的数据源类型"); |
| | | DebugEx.LogError("请指定正确的数据源类型"); |
| | | } |
| | | } |
| | | } |
| | |
| | | }
|
| | | else
|
| | | {
|
| | | DesignDebug.LogWarningFormat("数据包(cmd:{0})未登记!", _package.cmd);
|
| | | DebugEx.LogWarningFormat("数据包(cmd:{0})未登记!", _package.cmd);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | catch (Exception e)
|
| | | {
|
| | | DesignDebug.LogError(e.Message);
|
| | | DebugEx.LogError(e.Message);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | |
|
| | | if (ipAddresses[0].AddressFamily == AddressFamily.InterNetworkV6)
|
| | | {
|
| | | DesignDebug.Log("当前使用的网络: IPV6");
|
| | | DebugEx.Log("当前使用的网络: IPV6");
|
| | | m_Socket = new Socket(AddressFamily.InterNetworkV6, SocketType.Stream, ProtocolType.Tcp);
|
| | | }
|
| | | else
|
| | | {
|
| | | DesignDebug.Log("当前使用的网络: IPV4");
|
| | | DebugEx.Log("当前使用的网络: IPV4");
|
| | | m_Socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | if (!_result.IsCompleted)
|
| | | {
|
| | | DesignDebug.Log("链接超时!");
|
| | | DebugEx.Log("链接超时!");
|
| | | CloseConnect();
|
| | | }
|
| | | else
|
| | | {
|
| | | if (m_Socket != null && m_Socket.Connected)
|
| | | {
|
| | | DesignDebug.Log("确认的链接实现");
|
| | | DebugEx.Log("确认的链接实现");
|
| | | OnConnectSuccess();
|
| | |
|
| | | if (onConnected != null)
|
| | |
| | | }
|
| | | catch (Exception e)
|
| | | {
|
| | | DesignDebug.Log(e);
|
| | | DebugEx.Log(e);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | vNetpack = PackageRegedit.TransPack(vPackBytes);
|
| | | if (vNetpack != null)
|
| | | {
|
| | | if (DesignDebug.EnableNet)
|
| | | if (DebugEx.EnableNetLog)
|
| | | {
|
| | | DesignDebug.LogNetFormat("收包:{0}", vNetpack.GetType().Name);
|
| | | DebugEx.NetLogFormat("收包:{0}", vNetpack.GetType().Name);
|
| | | }
|
| | |
|
| | | GameNetSystem.Instance.PushPackage(vNetpack);
|
| | |
| | | return;
|
| | | if (vNetPack == null)
|
| | | {
|
| | | DesignDebug.LogError("要发的信息对象为空");
|
| | | DebugEx.LogError("要发的信息对象为空");
|
| | | return;
|
| | | }
|
| | |
|
| | | if (DesignDebug.EnableNet)
|
| | | if (DebugEx.EnableNetLog)
|
| | | {
|
| | | DesignDebug.LogNetFormat("发包:{0}", vNetPack.GetType().Name);
|
| | | DebugEx.NetLogFormat("发包:{0}", vNetPack.GetType().Name);
|
| | | }
|
| | |
|
| | | if (vNetPack.cmd == (ushort)0x03FE || vNetPack.cmd == (ushort)0x1801)
|
| | |
| | | {
|
| | | if (!Connected)
|
| | | {
|
| | | DesignDebug.LogError("尚未与该后端链接!无法发送信息");
|
| | | DebugEx.LogError("尚未与该后端链接!无法发送信息");
|
| | | return;
|
| | | }
|
| | | if (vBytes == null || vBytes.Length < 2)
|
| | | {
|
| | | DesignDebug.LogError("要发的信息数据为空或数据不足");
|
| | | DebugEx.LogError("要发的信息数据为空或数据不足");
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | if (!Connected)
|
| | | {
|
| | | DesignDebug.LogError("尚未与该后端链接!无法发送信息");
|
| | | DebugEx.LogError("尚未与该后端链接!无法发送信息");
|
| | | return;
|
| | | }
|
| | | if (vBytes == null || vBytes.Length < 2)
|
| | | {
|
| | | DesignDebug.LogError("要发的信息数据为空或数据不足");
|
| | | DebugEx.LogError("要发的信息数据为空或数据不足");
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | catch
|
| | | {
|
| | | DesignDebug.LogError("发送时发生异常");
|
| | | DebugEx.LogError("发送时发生异常");
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | |
| | | if (_animationClip == null) |
| | | { |
| | | DesignDebug.LogErrorFormat("LoadAnimationClip.Load() => 加载不到资源: {0} => {1}.", name, clipName); |
| | | DebugEx.LogErrorFormat("LoadAnimationClip.Load() => 加载不到资源: {0} => {1}.", name, clipName); |
| | | } |
| | | |
| | | return _animationClip; |
| | |
| | | |
| | | if (_controller == null) |
| | | { |
| | | DesignDebug.LogErrorFormat("AnimatorControllerLoader.Load() => 加载不到资源: {0}_{1}.", suffix, _name); |
| | | DebugEx.LogErrorFormat("AnimatorControllerLoader.Load() => 加载不到资源: {0}_{1}.", suffix, _name); |
| | | } |
| | | |
| | | return _controller; |
| | |
| | | |
| | | if (_controller == null) |
| | | { |
| | | DesignDebug.LogErrorFormat("AnimatorControllerLoader.Load() => 加载不到资源: {0}.", _name); |
| | | DebugEx.LogErrorFormat("AnimatorControllerLoader.Load() => 加载不到资源: {0}.", _name); |
| | | } |
| | | |
| | | return _controller; |
| | |
| | |
|
| | | if (_assetBundle == null)
|
| | | {
|
| | | DesignDebug.LogError("AssetBundleManifest的包文件为空或者加载出错.");
|
| | | DebugEx.LogError("AssetBundleManifest的包文件为空或者加载出错.");
|
| | | yield break;
|
| | | }
|
| | |
|
| | | AssetBundleManifest _assetBundleManifest = _assetBundle.LoadAsset<AssetBundleManifest>(ResourcesPath.AssetDependentFileAssetName);
|
| | | if (_assetBundleManifest == null)
|
| | | {
|
| | | DesignDebug.LogError("AssetBundleManifest文件为空或者加载出错.");
|
| | | DebugEx.LogError("AssetBundleManifest文件为空或者加载出错.");
|
| | | yield break;
|
| | | }
|
| | |
|
| | |
| | | var _assetBundleInfo = GetAssetBundleInfo(assetBundleName);
|
| | | if (_assetBundleInfo == null)
|
| | | {
|
| | | DesignDebug.LogErrorFormat("Co_LoadAssetBundle(): {0}出现错误 => 不存在AssetBundleInfo. ", assetBundleName);
|
| | | DebugEx.LogErrorFormat("Co_LoadAssetBundle(): {0}出现错误 => 不存在AssetBundleInfo. ", assetBundleName);
|
| | | yield break;
|
| | | }
|
| | |
|
| | |
| | |
|
| | | var filePath = AssetVersionUtility.GetAssetFilePath(assetBundleName);
|
| | |
|
| | | DesignDebug.LogFormat("Co_LoadAssetBundle(): 将要加载的assetBundle包路径 => {0}", filePath);
|
| | | DebugEx.LogFormat("Co_LoadAssetBundle(): 将要加载的assetBundle包路径 => {0}", filePath);
|
| | | var assetBundle = AssetBundle.LoadFromFile(filePath);
|
| | | CacheAssetBundle(assetBundleName, assetBundle);
|
| | | }
|
| | |
| | | {
|
| | | if (assetInfo == null)
|
| | | {
|
| | | DesignDebug.LogErrorFormat("Co_DoLoadAsset(): {0}, 出现错误 => 存入的AssetInfo为null. ", assetInfo);
|
| | | DebugEx.LogErrorFormat("Co_DoLoadAsset(): {0}, 出现错误 => 存入的AssetInfo为null. ", assetInfo);
|
| | | yield break;
|
| | | }
|
| | | yield return Co_DoLoadAsset(assetInfo.assetBundleName, assetInfo.name, callBack);
|
| | |
| | |
|
| | | if (_object == null)
|
| | | {
|
| | | DesignDebug.LogErrorFormat("Sync_LoadAsset(): {0} 出现错误 => null. ", assetName);
|
| | | DebugEx.LogErrorFormat("Sync_LoadAsset(): {0} 出现错误 => null. ", assetName);
|
| | | }
|
| | |
|
| | | return _object;
|
| | |
| | | AssetBundleInfo _assetBundleInfo = GetAssetBundleInfo(assetBundleName);
|
| | | if (_assetBundleInfo == null)
|
| | | {
|
| | | DesignDebug.LogErrorFormat("Sync_LoadAssetBundle(): {0} 出现错误 => 不存在AssetBundleInfo. ", assetBundleName);
|
| | | DebugEx.LogErrorFormat("Sync_LoadAssetBundle(): {0} 出现错误 => 不存在AssetBundleInfo. ", assetBundleName);
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | |
|
| | | if (JudgeExistAssetBundle(assetBundleName) == false)
|
| | | {
|
| | | DesignDebug.LogWarningFormat("UnloadAssetBundle(): 要卸载的包不在缓存中或者已经被卸载 => {0}. ", assetBundleName);
|
| | | DebugEx.LogWarningFormat("UnloadAssetBundle(): 要卸载的包不在缓存中或者已经被卸载 => {0}. ", assetBundleName);
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | |
|
| | | if (JudgeExistAsset(assetBundleName, assetName) == false)
|
| | | {
|
| | | DesignDebug.LogWarningFormat("UnloadAsset(): 要卸载的资源不在缓存中 => {0}. ", _assembleName);
|
| | | DebugEx.LogWarningFormat("UnloadAsset(): 要卸载的资源不在缓存中 => {0}. ", _assembleName);
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | |
|
| | | if (_assetObject is GameObject)
|
| | | {
|
| | | DesignDebug.LogFormat("UnloadAsset(): 成功卸载asset资源 => {0}. 类型为{1}, 不做其他处理. ", assetName, _assetObject.GetType().Name);
|
| | | DebugEx.LogFormat("UnloadAsset(): 成功卸载asset资源 => {0}. 类型为{1}, 不做其他处理. ", assetName, _assetObject.GetType().Name);
|
| | | }
|
| | | else
|
| | | {
|
| | | Resources.UnloadAsset(_assetObject);
|
| | | DesignDebug.LogFormat("UnloadAsset(): 成功卸载asset资源 => {0}. 类型为{1}, 执行Resources.UnloadAsset(). ", assetName, _assetObject.GetType().Name);
|
| | | DebugEx.LogFormat("UnloadAsset(): 成功卸载asset资源 => {0}. 类型为{1}, 执行Resources.UnloadAsset(). ", assetName, _assetObject.GetType().Name);
|
| | | }
|
| | |
|
| | | if (Application.isEditor)
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | DesignDebug.LogFormat("UnloadAssetBundle(): 要卸载assetBundle包 {0} 没有资源被加载. ", assetBundleInfo.name);
|
| | | DebugEx.LogFormat("UnloadAssetBundle(): 要卸载assetBundle包 {0} 没有资源被加载. ", assetBundleInfo.name);
|
| | | }
|
| | |
|
| | | // assetBundle包卸载
|
| | |
| | | // 卸载缓存的assetBundle资源
|
| | | m_AssetBundleDict.Remove(assetBundleInfo.name);
|
| | |
|
| | | DesignDebug.LogFormat("UnloadAssetBundle(): 成功卸载assetBundle包 => {0}. ", assetBundleInfo.name);
|
| | | DebugEx.LogFormat("UnloadAssetBundle(): 成功卸载assetBundle包 => {0}. ", assetBundleInfo.name);
|
| | |
|
| | | if (Application.isEditor)
|
| | | {
|
| | |
| | | m_AssetInfoDict[_assembleName] = _assetInfo;
|
| | | }
|
| | |
|
| | | DesignDebug.LogFormat("CacheAsset(): 成功缓存asset => {0}. ", assetName);
|
| | | DebugEx.LogFormat("CacheAsset(): 成功缓存asset => {0}. ", assetName);
|
| | |
|
| | | // if (Application.isEditor)
|
| | | // {
|
| | |
| | |
|
| | | if (assetBundle == null)
|
| | | {
|
| | | DesignDebug.LogErrorFormat("CacheAssetBundle(): {0}出现错误 => 将要缓存的包为 null. ", assetBundleName);
|
| | | DebugEx.LogErrorFormat("CacheAssetBundle(): {0}出现错误 => 将要缓存的包为 null. ", assetBundleName);
|
| | | return;
|
| | | }
|
| | |
|
| | | if (m_AssetBundleDict.ContainsKey(assetBundleName))
|
| | | {
|
| | | DesignDebug.LogErrorFormat("CacheAssetBundle(): {0}出现错误 => 将要缓存的包已经在缓存中. ", assetBundleName);
|
| | | DebugEx.LogErrorFormat("CacheAssetBundle(): {0}出现错误 => 将要缓存的包已经在缓存中. ", assetBundleName);
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | DesignDebug.LogFormat("CacheAssetBundle(): 成功缓存assetBundle包资源 => {0}. 目前有 {1} 个资源.", assetBundleName, m_AssetBundleDict.Count);
|
| | | DebugEx.LogFormat("CacheAssetBundle(): 成功缓存assetBundle包资源 => {0}. 目前有 {1} 个资源.", assetBundleName, m_AssetBundleDict.Count);
|
| | | }
|
| | |
|
| | | }
|
| | |
| | |
|
| | | if (audioClip == null)
|
| | | {
|
| | | DesignDebug.LogErrorFormat("AudioLoader.LoadSkillAudio() => 加载不到资源: {0}.", _clipName);
|
| | | DebugEx.LogErrorFormat("AudioLoader.LoadSkillAudio() => 加载不到资源: {0}.", _clipName);
|
| | | }
|
| | |
|
| | | return audioClip;
|
| | |
| | |
|
| | | if (_gameObject == null)
|
| | | {
|
| | | DesignDebug.LogErrorFormat("InstanceResourcesLoader.LoadModel() => 加载不到资源: {0} ", name);
|
| | | DebugEx.LogErrorFormat("InstanceResourcesLoader.LoadModel() => 加载不到资源: {0} ", name);
|
| | | }
|
| | |
|
| | | return _gameObject;
|
| | |
| | |
|
| | | if (_gameObject == null)
|
| | | {
|
| | | DesignDebug.LogErrorFormat("InstanceResourcesLoader.LoadModel() => 加载不到资源: {0}/{1} ", assetBundleName, assetName);
|
| | | DebugEx.LogErrorFormat("InstanceResourcesLoader.LoadModel() => 加载不到资源: {0}/{1} ", assetBundleName, assetName);
|
| | | }
|
| | |
|
| | | return _gameObject;
|
| | |
| | |
|
| | | if (_gameObject == null)
|
| | | {
|
| | | DesignDebug.LogErrorFormat("InstanceResourcesLoader.LoadSkillEffect() => 加载不到资源: {0}", _effectModel.fxName);
|
| | | DebugEx.LogErrorFormat("InstanceResourcesLoader.LoadSkillEffect() => 加载不到资源: {0}", _effectModel.fxName);
|
| | | }
|
| | |
|
| | | return _gameObject;
|
| | |
| | | Material _controller = AssetBundleUtility.Instance.Sync_LoadAsset(_assetInfo) as Material; |
| | | |
| | | if (_controller == null) { |
| | | DesignDebug.LogErrorFormat("MaterialLoader.Load() => 加载不到资源: {0}.", _assetName); |
| | | DebugEx.LogErrorFormat("MaterialLoader.Load() => 加载不到资源: {0}.", _assetName); |
| | | } |
| | | |
| | | return _controller; |
| | |
| | | // 错误保护 |
| | | if (inactivedCount == 0) |
| | | { |
| | | DesignDebug.LogWarningFormat("获取池对象时,池已经为空."); |
| | | DebugEx.LogWarningFormat("获取池对象时,池已经为空."); |
| | | return default(T); |
| | | } |
| | | // 取得池对象 |
| | |
| | | // 错误保护 |
| | | if (inactivedCount > 0 && ReferenceEquals(element, m_Inactived.Peek())) |
| | | { |
| | | DesignDebug.LogWarningFormat("向池释放对象的时候发现,该对象已经被释放了.", element.ToString()); |
| | | DebugEx.LogWarningFormat("向池释放对象的时候发现,该对象已经被释放了.", element.ToString()); |
| | | return; |
| | | } |
| | | // 执行外部传入的释放逻辑 |
| | |
| | | |
| | | if (_config == null) |
| | | { |
| | | DesignDebug.LogErrorFormat("ScriptableObjectLoader.LoadSoActor() => 加载不到资源: {0}.", mapID); |
| | | DebugEx.LogErrorFormat("ScriptableObjectLoader.LoadSoActor() => 加载不到资源: {0}.", mapID); |
| | | } |
| | | |
| | | return _config; |
| | |
| | | |
| | | if (_config == null) |
| | | { |
| | | DesignDebug.LogErrorFormat("ScriptableObjectLoader.LoadSoActor() => 加载不到资源: {0}.", raceId); |
| | | DebugEx.LogErrorFormat("ScriptableObjectLoader.LoadSoActor() => 加载不到资源: {0}.", raceId); |
| | | } |
| | | |
| | | return _config; |
| | |
| | |
|
| | | if (window == null)
|
| | | {
|
| | | DesignDebug.LogErrorFormat("UILoader.LoadWindow() => 加载不到资源: {0}.", _name);
|
| | | DebugEx.LogErrorFormat("UILoader.LoadWindow() => 加载不到资源: {0}.", _name);
|
| | | }
|
| | |
|
| | | return window;
|
| | |
| | |
|
| | | if (prefab == null)
|
| | | {
|
| | | DesignDebug.LogErrorFormat("UILoader.LoadPrefab() => 加载不到资源: {0}.", _name);
|
| | | DebugEx.LogErrorFormat("UILoader.LoadPrefab() => 加载不到资源: {0}.", _name);
|
| | | }
|
| | |
|
| | | return prefab;
|
| | |
| | |
|
| | | if (sprite == null)
|
| | | {
|
| | | DesignDebug.LogErrorFormat("UILoader.LoadSprite() => 加载不到资源: {0}.", file);
|
| | | DebugEx.LogErrorFormat("UILoader.LoadSprite() => 加载不到资源: {0}.", file);
|
| | | }
|
| | |
|
| | | return sprite;
|
| | |
| | |
|
| | | if (font == null)
|
| | | {
|
| | | DesignDebug.LogErrorFormat("UILoader.LoadFont() => 加载不到资源: {0}.", _fontName);
|
| | | DebugEx.LogErrorFormat("UILoader.LoadFont() => 加载不到资源: {0}.", _fontName);
|
| | | }
|
| | |
|
| | | return font;
|
| | |
| | | }
|
| | | if (1044 == id)
|
| | | {
|
| | | DesignDebug.Log("PlayWithEulerAngle: " + 1044);
|
| | | DebugEx.Log("PlayWithEulerAngle: " + 1044);
|
| | | }
|
| | | _controller.startTime = 0;
|
| | | _controller.effectId = id;
|
| | |
| | | { |
| | | if (m_Pool.Contains(id)) |
| | | { |
| | | DesignDebug.LogWarning("释放ID: {0} 的时候检测池中已存在此id"); |
| | | DebugEx.LogWarning("释放ID: {0} 的时候检测池中已存在此id"); |
| | | return; |
| | | } |
| | | |
| | |
| | | SoSkill _soSkill = ScriptableObjectLoader.LoadSoSkill(skill.id);
|
| | | if (_soSkill == null)
|
| | | {
|
| | | DesignDebug.LogWarningFormat("技能: {0} 没有配置SoSkill文件, 将没有范围检测能力.", skill.id);
|
| | | DebugEx.LogWarningFormat("技能: {0} 没有配置SoSkill文件, 将没有范围检测能力.", skill.id);
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | if (h0605.ObjID == PlayerDatas.Instance.PlayerId)
|
| | | {
|
| | | DesignDebug.Log("得到了一个嘲讽buff");
|
| | | DebugEx.Log("得到了一个嘲讽buff");
|
| | | }
|
| | | _status = new Status_Mocking();
|
| | | }
|
| | |
| | |
|
| | | if (m_SkillConfig == null)
|
| | | {
|
| | | DesignDebug.LogWarningFormat("配置是否出错: {0}", data.SkillID);
|
| | | DebugEx.LogWarningFormat("配置是否出错: {0}", data.SkillID);
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | | _temp = WindowCenter.Instance.uiRoot.baseCanvas.Find("MainInterfaceWin/JoyStick");
|
| | | _temp.localScale = Vector3.zero;
|
| | |
|
| | | DesignDebug.Log("未开始第一个任务...");
|
| | | DebugEx.Log("未开始第一个任务...");
|
| | | // 根据任务设置主角坐标
|
| | | PlayerDatas.Instance.hero.InitBornPos(378, 52);
|
| | | PlayerDatas.Instance.hero.Pos = new Vector3(188.984f, 62.47324f, 26.092f);
|
| | |
| | | m_HuaShouEffect = EffectMgr.Instance.PlayUIEffect(1049, 4500, _temp, true);
|
| | | m_UIEffect = EffectMgr.Instance.PlayUIEffect(1095, 4500, _temp, true);
|
| | |
|
| | | DesignDebug.Log("第一个任务已经结束...");
|
| | | DebugEx.Log("第一个任务已经结束...");
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | |
| | |
|
| | | SnxxzGame.Instance.StartCoroutine(LookNpcBorn());
|
| | |
|
| | | DesignDebug.Log("移动到第二个平台已经结束...");
|
| | | DebugEx.Log("移动到第二个平台已经结束...");
|
| | | }
|
| | |
|
| | | private IEnumerator LookNpcBorn()
|
| | |
| | |
|
| | | m_SimpleTransfer.Init(-1, _pos, false, null, () =>
|
| | | {
|
| | | DesignDebug.Log("触发第三个对话内容...");
|
| | | DebugEx.Log("触发第三个对话内容...");
|
| | |
|
| | | Step_3_TalkFinished();
|
| | |
|
| | |
| | |
|
| | | GA_Hero.s_MapSwitching = false;
|
| | |
|
| | | DesignDebug.Log("第三个对话结束...");
|
| | | DebugEx.Log("第三个对话结束...");
|
| | | }
|
| | |
|
| | | public void Step_FabaoEffect()
|
| | |
| | | m_FabaoEffect = SFXPlayUtility.Instance.PlayWithEulerAngle(1051, new Vector3(129.98f, 51.548f, 33.13f), new Vector3(0, -90.81f, 0));
|
| | |
|
| | | PlayerDatas.Instance.hero.MoveToPosition(m_SecondTransferStartPos);
|
| | | DesignDebug.Log("第四个对话结束...");
|
| | | DebugEx.Log("第四个对话结束...");
|
| | | }
|
| | |
|
| | | // 前期战斗流程结束
|
| | |
| | | AssetBundleUtility.Instance.UnloadAssetBundle("mob/prefab_race_n017a", true, true);
|
| | | }
|
| | |
|
| | | DesignDebug.Log("前期结束...");
|
| | | DebugEx.Log("前期结束...");
|
| | | }
|
| | | private bool mDestroy = false;
|
| | | public void Destroy()
|
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | dropObject = null;
|
| | | return false;
|
| | | }
|
| | |
| | |
|
| | | public StageManager()
|
| | | {
|
| | | DesignDebug.LogFormat("初始化StageManager");
|
| | | DebugEx.LogFormat("初始化StageManager");
|
| | | }
|
| | |
|
| | | public void Load<T>(int stageId) where T : Stage
|
| | |
| | |
|
| | | Application.backgroundLoadingPriority = ThreadPriority.BelowNormal;
|
| | | isLoading = false;
|
| | | DesignDebug.LogFormat("StageManager => Load Scene : {0} Finished.", _resources);
|
| | | DebugEx.LogFormat("StageManager => Load Scene : {0} Finished.", _resources);
|
| | | WindowCenter.Instance.Close<LoadingWin>();
|
| | | SystemSetting.Instance.SetFPSLimit(SystemSetting.Instance.GetFPSLimit());
|
| | | }
|
| | |
| | | } |
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.LogError(ex.Message); |
| | | DebugEx.LogError(ex.Message); |
| | | ret = false; |
| | | } |
| | | #endif |
| | |
| | | } |
| | | catch (Exception ex)
|
| | | { |
| | | DesignDebug.LogWarning("ERROR: " + ex); |
| | | DebugEx.LogWarning("ERROR: " + ex); |
| | | mHadError = true; |
| | | } |
| | | finally
|
| | |
| | | } |
| | | catch (WebException webEx)
|
| | | { |
| | | DesignDebug.LogWarning("<color=red>Request File Head ERROR: " + mRemoteFile + "</color>"); |
| | | DesignDebug.LogWarning("ERROR: " + webEx); |
| | | DebugEx.LogWarning("<color=red>Request File Head ERROR: " + mRemoteFile + "</color>"); |
| | | DebugEx.LogWarning("ERROR: " + webEx); |
| | | mHadError = true; |
| | | gDownloadIsRunningCount--; |
| | | done = true; |
| | |
| | | } |
| | | catch (System.Exception e)
|
| | | { |
| | | DesignDebug.LogWarning("<color=red>Request File Head ERROR: " + mRemoteFile + "</color>"); |
| | | DesignDebug.LogWarning("ERROR: " + e); |
| | | DebugEx.LogWarning("<color=red>Request File Head ERROR: " + mRemoteFile + "</color>"); |
| | | DebugEx.LogWarning("ERROR: " + e); |
| | | mHadError = true; |
| | | gDownloadIsRunningCount--; |
| | | done = true; |
| | |
| | | float dur = System.Environment.TickCount - tick1; |
| | | if (dur > timeOut)
|
| | | { |
| | | DesignDebug.LogWarningFormat("获取远程文件{0} 信息超时!", mRemoteFile); |
| | | DebugEx.LogWarningFormat("获取远程文件{0} 信息超时!", mRemoteFile); |
| | | mHadError = true; |
| | | break; |
| | | } |
| | |
| | | } |
| | | if (mHadError)
|
| | | { |
| | | DesignDebug.LogWarningFormat("获取远程文件{0} 信息失败!", mRemoteFile); |
| | | DebugEx.LogWarningFormat("获取远程文件{0} 信息失败!", mRemoteFile); |
| | | headRequest.Abort(); |
| | | done = true; |
| | | gDownloadIsRunningCount--; |
| | |
| | | } |
| | | else if (localFileSize > mRemoteFileSize || outDated)
|
| | | { |
| | | if (!outDated) DesignDebug.LogWarning("Local file is larger than remote file, but not outdated. PANIC!"); |
| | | if (!outDated) DebugEx.LogWarning("Local file is larger than remote file, but not outdated. PANIC!"); |
| | | if (outDated)
|
| | | { |
| | | DesignDebug.LogWarning(mLocalFileTemp + " Local file is outdated, deleting"); |
| | | DebugEx.LogWarning(mLocalFileTemp + " Local file is outdated, deleting"); |
| | | } |
| | | try
|
| | | { |
| | |
| | | } |
| | | catch (System.Exception e)
|
| | | { |
| | | DesignDebug.LogWarning("<color=red>Could not delete local file</color>"); |
| | | DesignDebug.LogError(e); |
| | | DebugEx.LogWarning("<color=red>Could not delete local file</color>"); |
| | | DebugEx.LogError(e); |
| | | } |
| | | |
| | | while (File.Exists(mLocalFileTemp))
|
| | |
| | | } |
| | | catch (System.Exception e)
|
| | | { |
| | | DesignDebug.LogWarning("<color=red>Could not delete local file</color>"); |
| | | DesignDebug.LogWarning(e); |
| | | DebugEx.LogWarning("<color=red>Could not delete local file</color>"); |
| | | DebugEx.LogWarning(e); |
| | | } |
| | | while (File.Exists(localFile))
|
| | | {
|
| | |
| | | } |
| | | catch (System.Exception ex)
|
| | | { |
| | | DesignDebug.LogWarning("BeginGetResponse exception: " + ex.Message); |
| | | DesignDebug.LogWarning(ex); |
| | | DebugEx.LogWarning("BeginGetResponse exception: " + ex.Message); |
| | | DebugEx.LogWarning(ex); |
| | | if (fileRequest != null)
|
| | | { |
| | | fileRequest.Abort(); |
| | |
| | | float dur = System.Environment.TickCount - tick1; |
| | | if (dur > timeOut)
|
| | | { |
| | | DesignDebug.LogWarningFormat("下载远程文件{0} 超时!", mRemoteFile); |
| | | DebugEx.LogWarningFormat("下载远程文件{0} 超时!", mRemoteFile); |
| | | mHadError = true; |
| | | break; |
| | | } |
| | |
| | | |
| | | if (mHadError)
|
| | | { |
| | | DesignDebug.LogWarningFormat("[RemoteFile] 远程文件{0} 下载失败! ", localFile); |
| | | DebugEx.LogWarningFormat("[RemoteFile] 远程文件{0} 下载失败! ", localFile); |
| | | if (fileRequest != null)
|
| | | { |
| | | fileRequest.Abort(); |
| | |
| | | } |
| | | catch (Exception ex)
|
| | | { |
| | | DesignDebug.LogWarning("<color=red>ERROR: " + mRemoteFile + "</color>"); |
| | | DesignDebug.LogWarning(ex); |
| | | DebugEx.LogWarning("<color=red>ERROR: " + mRemoteFile + "</color>"); |
| | | DebugEx.LogWarning(ex); |
| | | if (inStream != null)
|
| | | { |
| | | inStream.Close(); |
| | |
| | | if (dura > timeOut)
|
| | | { |
| | | fileWriteState = FileWriteState.Timeout; |
| | | DesignDebug.LogWarningFormat("[RemoteFile] 远程文件{0} 读取超时{1}!", mRemoteFile, dura); |
| | | DebugEx.LogWarningFormat("[RemoteFile] 远程文件{0} 读取超时{1}!", mRemoteFile, dura); |
| | | break; |
| | | } |
| | | } |
| | |
| | | } |
| | | if (fileWriteState == FileWriteState.Error || fileWriteState == FileWriteState.Timeout)
|
| | | { |
| | | DesignDebug.LogWarningFormat("[RemoteFile] 远程文件{0} 下载失败! ", localFile); |
| | | DebugEx.LogWarningFormat("[RemoteFile] 远程文件{0} 下载失败! ", localFile); |
| | | if (fileResponse != null)
|
| | | { |
| | | fileResponse.Close(); |
| | |
| | | if (localTempFileInfo.Length != mRemoteFileSize && mRemoteFileSize != 0L)
|
| | | { |
| | | mHadError = true; |
| | | DesignDebug.LogError(string.Format(localFile + " 下载完成后, 但是大小{0} 和远程文件不一致 {1}", localTempFileInfo.Length, mRemoteFileSize)); |
| | | DebugEx.LogError(string.Format(localFile + " 下载完成后, 但是大小{0} 和远程文件不一致 {1}", localTempFileInfo.Length, mRemoteFileSize)); |
| | | } |
| | | else
|
| | | { //大小一致 |
| | |
| | | } |
| | | catch (Exception ex)
|
| | | { |
| | | DesignDebug.LogError(ex); |
| | | DebugEx.LogError(ex); |
| | | mHadError = true; |
| | | } |
| | | } |
| | |
| | | { |
| | | if (!processErroring)
|
| | | { |
| | | DesignDebug.LogWarning(ex); |
| | | DesignDebug.LogWarning("ReadDataCallback 异常信息: " + ex.Message); |
| | | DebugEx.LogWarning(ex); |
| | | DebugEx.LogWarning("ReadDataCallback 异常信息: " + ex.Message); |
| | | } |
| | | if (fs != null)
|
| | | { |
| | |
| | | { |
| | | if (result == null)
|
| | | { |
| | | DesignDebug.LogError("Asynch result is null!"); |
| | | DebugEx.LogError("Asynch result is null!"); |
| | | mHadError = true; |
| | | } |
| | | |
| | | HttpWebRequest webRequest = (HttpWebRequest)result.AsyncState; |
| | | if (webRequest == null)
|
| | | { |
| | | DesignDebug.LogError("Could not cast to web request"); |
| | | DebugEx.LogError("Could not cast to web request"); |
| | | mHadError = true; |
| | | } |
| | | |
| | | fileResponse = webRequest.EndGetResponse(result) as HttpWebResponse; |
| | | if (fileResponse == null)
|
| | | { |
| | | DesignDebug.LogError("Asynch response is null!"); |
| | | DebugEx.LogError("Asynch response is null!"); |
| | | mHadError = true; |
| | | } |
| | | } |
| | | catch (Exception ex)
|
| | | { |
| | | mHadError = true; |
| | | DesignDebug.LogWarning(ex); |
| | | DesignDebug.LogWarning("[RemoteFile] AsynchCallback 异常: " + ex.Message); |
| | | DebugEx.LogWarning(ex); |
| | | DebugEx.LogWarning("[RemoteFile] AsynchCallback 异常: " + ex.Message); |
| | | } |
| | | } |
| | | #endif |
| | |
| | |
|
| | | public void RefreshBlastFurnaceModel(HA3BF_tagMCPlayerStoveMsg data)
|
| | | {
|
| | | DesignDebug.Log("RefreshBlastFurnaceModel");
|
| | | DebugEx.Log("RefreshBlastFurnaceModel");
|
| | | addExp = (int)data.StoveExp - _stoveExp;
|
| | | if (addExp < 0)
|
| | | {
|
| | |
| | | public Treasure treasureData { get; private set; }
|
| | | public void RefreshTreasureRefineModel(HA3BE_tagMCMagicWeaponMsg data)
|
| | | {
|
| | | DesignDebug.Log("RefreshTreasureRefineModel" + data.Count);
|
| | | DebugEx.Log("RefreshTreasureRefineModel" + data.Count);
|
| | | if (data.Count > 0)
|
| | | {
|
| | | int i = 0;
|
| | |
| | | public event Action<MakeType,int> RefreshMakeItemAnswerAct;
|
| | | public void GetMakerResult(H0721_tagMakeItemAnswer answer)
|
| | | {
|
| | | DesignDebug.Log("GetMakerResult" + answer.Result);
|
| | | DebugEx.Log("GetMakerResult" + answer.Result);
|
| | | switch((MakeType)answer.MakeType)
|
| | | {
|
| | | case MakeType.Def_mitRefine:
|
| | |
| | |
|
| | | public void SetChinItemModel(int itemId, int isBind = 0,bool isNoOpen = false ,params string[] extraInfos)
|
| | | {
|
| | | DesignDebug.Log("物品ID:" + itemId);
|
| | | DebugEx.Log("物品ID:" + itemId);
|
| | | chinItemModel = ConfigManager.Instance.GetTemplate<ItemConfig>(itemId);
|
| | | if (chinItemModel == null) return;
|
| | |
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | DesignDebug.Log("暂无此装备位的处理:" + equipPlace);
|
| | | DebugEx.Log("暂无此装备位的处理:" + equipPlace);
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | |
|
| | | public void SetRuneModel(int itemId,int _level, params string[] extraInfos)
|
| | | {
|
| | | DesignDebug.Log("物品ID:" + itemId);
|
| | | DebugEx.Log("物品ID:" + itemId);
|
| | | chinItemModel = ConfigManager.Instance.GetTemplate<ItemConfig>(itemId);
|
| | | if (chinItemModel == null) return;
|
| | | this.isBind = 0;
|
| | |
| | |
|
| | | public void SetPetMatUnlockModel(int itemId, int isBind = 0,params string[] extraInfos)
|
| | | {
|
| | | DesignDebug.Log("物品ID:" + itemId);
|
| | | DebugEx.Log("物品ID:" + itemId);
|
| | | chinItemModel = ConfigManager.Instance.GetTemplate<ItemConfig>(itemId);
|
| | | if (chinItemModel == null) return;
|
| | |
|
| | |
| | | _chinItemModel = ConfigManager.Instance.GetTemplate<ItemConfig>(FurnaceModel.makerItemID);
|
| | | if (_chinItemModel == null)
|
| | | {
|
| | | DesignDebug.LogError("不存在此丹药ID");
|
| | | DebugEx.LogError("不存在此丹药ID");
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | catch (Exception e)
|
| | | {
|
| | | DesignDebug.LogError(e.Message);
|
| | | DebugEx.LogError(e.Message);
|
| | | }
|
| | | }
|
| | | });
|
| | |
| | | }
|
| | | catch (Exception e)
|
| | | {
|
| | | DesignDebug.LogError(e.Message);
|
| | | DebugEx.LogError(e.Message);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | } |
| | | sprites = UIFrameMgr.Inst.GetDynamicFace(frameKey); |
| | | if (sprites == null||sprites.Count<1) { |
| | | DesignDebug.LogError(string.Format("没有{0}对应的帧动画", frameKey)); |
| | | DebugEx.LogError(string.Format("没有{0}对应的帧动画", frameKey)); |
| | | enabled = false; |
| | | return; |
| | | } |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | return string.Empty;
|
| | | }
|
| | | }
|
| | |
| | | {
|
| | | if (CrashReport.lastReport != null)
|
| | | {
|
| | | DesignDebug.LogFormat("崩溃日志:{0}", CrashReport.lastReport);
|
| | | DebugEx.LogFormat("崩溃日志:{0}", CrashReport.lastReport);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | |
|
| | | private void Awake()
|
| | | {
|
| | | Application.logMessageReceived += AddLogRenderer;
|
| | | Application.logMessageReceivedThreaded += AddLogRenderer;
|
| | | if (DebugUtility.Instance.debugAccount)
|
| | | {
|
| | | Application.logMessageReceived += AddLogRenderer;
|
| | | Application.logMessageReceivedThreaded += AddLogRenderer;
|
| | | }
|
| | | }
|
| | |
|
| | | private void OnEnable()
|
| | |
| | |
|
| | | private void OnDestroy()
|
| | | {
|
| | | Application.logMessageReceived -= AddLogRenderer;
|
| | | Application.logMessageReceivedThreaded -= AddLogRenderer;
|
| | | if (DebugUtility.Instance.debugAccount)
|
| | | {
|
| | | Application.logMessageReceived -= AddLogRenderer;
|
| | | Application.logMessageReceivedThreaded -= AddLogRenderer;
|
| | | }
|
| | | }
|
| | |
|
| | | public void SetLogVisible()
|
| | |
| | | switch (_type)
|
| | | {
|
| | | case LogType.Log:
|
| | | allow = DesignDebug.EnableLog || DesignDebug.EnableNet;
|
| | | allow = DebugEx.EnableLog || DebugEx.EnableNetLog;
|
| | | break;
|
| | | case LogType.Warning:
|
| | | allow = DesignDebug.EnableLogWarning;
|
| | | allow = DebugEx.EnableLogWarning;
|
| | | break;
|
| | | case LogType.Error:
|
| | | case LogType.Exception:
|
| | | case LogType.Assert:
|
| | | allow = DesignDebug.EnableLogError;
|
| | | allow = DebugEx.EnableLogError;
|
| | | break;
|
| | | }
|
| | |
|
| | |
| | | private void Awake()
|
| | | {
|
| | | m_ToggleDrawLog.isOn = m_DrawLog;
|
| | | m_ToggleLog.isOn = DesignDebug.EnableLog;
|
| | | m_ToggleWarning.isOn = DesignDebug.EnableLogWarning;
|
| | | m_ToggleError.isOn = DesignDebug.EnableLogError;
|
| | | m_ToggleNet.isOn = DesignDebug.EnableNet;
|
| | | m_ToggleLog.isOn = DebugEx.EnableLog;
|
| | | m_ToggleWarning.isOn = DebugEx.EnableLogWarning;
|
| | | m_ToggleError.isOn = DebugEx.EnableLogError;
|
| | | m_ToggleNet.isOn = DebugEx.EnableNetLog;
|
| | | m_ToggleCallStack.isOn = m_CallStack;
|
| | |
|
| | | m_ToggleDrawLog.AddListener(SetLogRenderActive);
|
| | | m_ToggleLog.AddListener(DesignDebug.SetLogAble);
|
| | | m_ToggleWarning.AddListener(DesignDebug.SetLogWarningAble);
|
| | | m_ToggleError.AddListener(DesignDebug.SetLogErrorAble);
|
| | | m_ToggleNet.AddListener(DesignDebug.SetLogNetAble);
|
| | | m_ToggleLog.AddListener(DebugUtility .SetLogAble);
|
| | | m_ToggleWarning.AddListener(DebugUtility.SetLogWarningAble);
|
| | | m_ToggleError.AddListener(DebugUtility.SetLogErrorAble);
|
| | | m_ToggleNet.AddListener(DebugUtility.SetLogNetAble);
|
| | | m_ToggleCallStack.AddListener(SetCallStackActive);
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | } |
| | | |
| | | |
| | | public int debugBranch = -1; |
| | | |
| | | public void Init()
|
| | |
| | | debugBranch = json.branch;
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | if (debugAccount)
|
| | | {
|
| | | DebugEx.EnableLog = LocalSave.GetBool("DesignEnableLog", false);
|
| | | DebugEx.EnableLogWarning = LocalSave.GetBool("DesignEnableLogWarning", false);
|
| | | DebugEx.EnableLogError = LocalSave.GetBool("DesignEnableLogError", false);
|
| | | DebugEx.EnableNetLog = false;
|
| | | }
|
| | | else
|
| | | {
|
| | | DebugEx.EnableLog = false;
|
| | | DebugEx.EnableLogWarning = false;
|
| | | DebugEx.EnableLogError = false;
|
| | | DebugEx.EnableNetLog = false;
|
| | | }
|
| | | } |
| | | |
| | |
| | | var debugAuthority = JsonMapper.ToObject<DebugAuthority>(_result);
|
| | | debugAccount = debugAuthority.dbg == 1;
|
| | | }
|
| | | }
|
| | |
|
| | | public static void SetLogAble(bool _able)
|
| | | {
|
| | | LocalSave.SetBool("DesignEnableLog", _able);
|
| | | DebugEx.EnableLog = _able;
|
| | | }
|
| | |
|
| | | public static void SetLogWarningAble(bool _able)
|
| | | {
|
| | | LocalSave.SetBool("DesignEnableLogWarning", _able);
|
| | | DebugEx.EnableLogWarning = _able;
|
| | | }
|
| | |
|
| | | public static void SetLogErrorAble(bool _able)
|
| | | {
|
| | | LocalSave.SetBool("DesignEnableLogError", _able);
|
| | | DebugEx.EnableLogError = _able;
|
| | | }
|
| | |
|
| | | public static void SetLogNetAble(bool _able)
|
| | | {
|
| | | DebugEx.EnableNetLog = _able;
|
| | | } |
| | | |
| | | struct DebugAuthority
|
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DesignDebug.LogError(ex); |
| | | DebugEx.LogError(ex); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | DesignDebug.LogErrorFormat("不存在该Npc {0}", npcId); |
| | | DebugEx.LogErrorFormat("不存在该Npc {0}", npcId); |
| | | } |
| | | break; |
| | | } |
| | |
| | | switch (error)
|
| | | {
|
| | | case 1:
|
| | | DesignDebug.Log("副本评级不足");
|
| | | DebugEx.Log("副本评级不足");
|
| | | break;
|
| | | case 2:
|
| | | var tickets = model.GetDungeonTicketCost(model.currentDungeon.mapId, model.currentDungeon.lineId);
|
| | |
| | | _CA610.ItemID = (uint)_NumberID;
|
| | | _CA610.ExcangeCount = (ushort)_CurrentNumber;
|
| | | GameNetSystem.Instance.SendInfo(_CA610);
|
| | | DesignDebug.Log("兑换成功");
|
| | | DebugEx.Log("兑换成功");
|
| | | Close();
|
| | | }
|
| | | else
|
| | |
| | | private UnionLivenConfig _livenModel;
|
| | | public void RefreshlivenModel(HA316_tagMCFamilyActivityInfo data)
|
| | | {
|
| | | DesignDebug.Log("RefreshlivenModel" + data.Count);
|
| | | DebugEx.Log("RefreshlivenModel" + data.Count);
|
| | | int i = 0;
|
| | | for(i = 0; i < data.Count;i++)
|
| | | {
|
| | |
| | |
|
| | | private void OnClickLivenScoreBtn(int score,int index)
|
| | | {
|
| | | DesignDebug.Log(TaskModel.curLivenScore + "和" + score);
|
| | | DebugEx.Log(TaskModel.curLivenScore + "和" + score);
|
| | | if(TaskModel.curLivenScore >= score)
|
| | | {
|
| | | if(!TaskModel.receiveAwardRecord[index])
|
| | |
| | |
|
| | | public void ReFreshModel(HA9A1_tagGCQueryCompensationResult mailModel)
|
| | | {
|
| | | DesignDebug.Log("刷新邮件数据" + mailModel.Count);
|
| | | DebugEx.Log("刷新邮件数据" + mailModel.Count);
|
| | | if(mailModel.Count > 0)
|
| | | {
|
| | | int preMailCnt = mailModelDict.Count;
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | DesignDebug.Log("不需要解析模板邮件");
|
| | | DebugEx.Log("不需要解析模板邮件");
|
| | | string[] mailContentArray = info.Text.Split(new string[] { "<$_$>" }, StringSplitOptions.RemoveEmptyEntries);
|
| | | if (mailContentArray.Length > 0)
|
| | | {
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | DesignDebug.LogError("服务端下发格式不正确");
|
| | | DebugEx.LogError("服务端下发格式不正确");
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | #endregion
|
| | |
|
| | | _chooseMailList = _isChooseMailDict.Values.ToList();
|
| | | DesignDebug.Log("OnClickReceiveBtn" + _chooseMailList.Count);
|
| | | DebugEx.Log("OnClickReceiveBtn" + _chooseMailList.Count);
|
| | | if (_chooseMailList.Count > 0)
|
| | | {
|
| | | ReceiveAllChooseMail(0, _chooseMailList[0]);
|
| | |
| | | public void DeleteAllChooseMail(int index, MailInfo deleteCell)
|
| | | {
|
| | |
|
| | | DesignDebug.Log(index + "比较" + _chooseMailList.Count);
|
| | | DebugEx.Log(index + "比较" + _chooseMailList.Count);
|
| | | _mailState = MailState.Delete;
|
| | | if (index >= _chooseMailList.Count)
|
| | | {
|
| | |
| | | index += 1;
|
| | | if (index < _chooseMailList.Count)
|
| | | {
|
| | | DesignDebug.Log("递归" + index);
|
| | | DebugEx.Log("递归" + index);
|
| | | DeleteAllChooseMail(index, _chooseMailList[index]);
|
| | | }
|
| | | else
|
| | |
| | | index += 1;
|
| | | if (index < _chooseMailList.Count)
|
| | | {
|
| | | DesignDebug.Log("递归" + index);
|
| | | DebugEx.Log("递归" + index);
|
| | | DeleteAllChooseMail(index, _chooseMailList[index]);
|
| | | }
|
| | | else
|
| | |
| | | if (receiveCell.Count > 0 || receiveCell.Gold > 0
|
| | | || receiveCell.GoldPaper > 0 || receiveCell.Silver > 0)
|
| | | {
|
| | | DesignDebug.Log("领取邮件:" + index);
|
| | | DebugEx.Log("领取邮件:" + index);
|
| | | SendAskReceive(receiveCell.GUID);
|
| | | }
|
| | |
|
| | |
| | | //由于服务端删除邮件可能有冷却时间所以造成返回的次数不准确
|
| | | public void OnGetReceiveResult(string guId, int result)
|
| | | {
|
| | | DesignDebug.Log("OnGetReceiveResult" + result);
|
| | | DebugEx.Log("OnGetReceiveResult" + result);
|
| | | if (result == 1)
|
| | | {
|
| | | if (_mailState == MailState.Receive)
|
| | |
| | | Button disagreeBtn = cell.transform.Find("disagreeBtn").GetComponent<Button>();
|
| | | GameObject selectImg = cell.transform.Find("SelectedImage").gameObject;
|
| | | Image realmImg = cell.transform.Find("RealmImage").GetComponent<Image>();
|
| | | DesignDebug.Log("境界:" + friendInfo.RealmLV);
|
| | | DebugEx.Log("境界:" + friendInfo.RealmLV);
|
| | | RealmConfig realmConfig = ConfigManager.Instance.GetTemplate<RealmConfig>(friendInfo.RealmLV);
|
| | | if(friendInfo.RealmLV > 0)
|
| | | {
|
| | |
| | |
|
| | | private void ClickFriendCell(int friendID)
|
| | | {
|
| | | DesignDebug.Log("ClickFriendCell:" + friendID);
|
| | | DebugEx.Log("ClickFriendCell:" + friendID);
|
| | | selectID = friendID;
|
| | | RefreshFriendQuest();
|
| | | }
|
| | |
| | | //玩家在线情况
|
| | | public void RefreshOnlineType(HB306_tagGCSocialOnline onlineType)
|
| | | {
|
| | | DesignDebug.Log("RefreshOnlineType:ID" + onlineType.PlayerID + "在线情况:" + onlineType.OnlineType);
|
| | | DebugEx.Log("RefreshOnlineType:ID" + onlineType.PlayerID + "在线情况:" + onlineType.OnlineType);
|
| | | if(_socialPlayerDict.ContainsKey(onlineType.PlayerID))
|
| | | {
|
| | | _socialPlayerDict[onlineType.PlayerID].OnlineType = onlineType.OnlineType;
|
| | |
| | | public void AddFriend(HB301_tagGCAddSocialPlayer addfriend)
|
| | | {
|
| | | tempFriendData = null;
|
| | | DesignDebug.Log("AddFriend");
|
| | | DebugEx.Log("AddFriend");
|
| | | if (!_groupDict.ContainsKey(addfriend.GroupType))
|
| | | {
|
| | | Dictionary<uint, FriendPlayer> friendInfoDict = new Dictionary<uint, FriendPlayer>();
|
| | |
| | | public void FriendChatRedPointCtrl(ChatFriendData data)
|
| | | {
|
| | | newChatInfo = data;
|
| | | DesignDebug.Log("FriendChatRedPointCtrl");
|
| | | DebugEx.Log("FriendChatRedPointCtrl");
|
| | | }
|
| | |
|
| | | private void PrivateSomeone(int playerId)
|
| | |
| | |
|
| | | public string GetOnlineType(int onlineType)
|
| | | {
|
| | | DesignDebug.Log("在线状态:" + onlineType);
|
| | | DebugEx.Log("在线状态:" + onlineType);
|
| | | if (onlineType == 0)
|
| | | {
|
| | | return Language.Get("Friend108");
|
| | |
| | | /// <param name="sendQuest"></param> |
| | | public void OnSendGMQuest(string sendQuest) |
| | | { |
| | | DesignDebug.Log("sendQuest: " + sendQuest); |
| | | DebugEx.Log("sendQuest: " + sendQuest); |
| | | C320C_tagCGMCMD gmCmd = new C320C_tagCGMCMD(); |
| | | gmCmd.Cmd = sendQuest; |
| | | gmCmd.CmdLen = (byte)(sendQuest.Length); |
| | |
| | | |
| | | public void OnEndDrag(PointerEventData eventData) |
| | | { |
| | | DesignDebug.Log(pos.x + "和" + pos.y); |
| | | DebugEx.Log(pos.x + "和" + pos.y); |
| | | } |
| | | |
| | | } |
| | |
| | | }
|
| | | else
|
| | | {
|
| | | DesignDebug.LogError("EquipArea : 装备位置重复");
|
| | | DebugEx.LogError("EquipArea : 装备位置重复");
|
| | | }
|
| | | }
|
| | | var _trailBossJson = LitJson.JsonMapper.ToObject(GetInputString("MuneKadoTrialBossHead", 1));
|
| | |
| | | {
|
| | | if(freeCDs[i] != 0)
|
| | | {
|
| | | DesignDebug.Log("现在时间:" + TimeUtility.ServerNow + "免费时间:" + TimeUtility.GetTime((uint)typeInfo.freeTimeDict[i]));
|
| | | DebugEx.Log("现在时间:" + TimeUtility.ServerNow + "免费时间:" + TimeUtility.GetTime((uint)typeInfo.freeTimeDict[i]));
|
| | | TimeSpan t = TimeUtility.ServerNow - TimeUtility.GetTime((uint)typeInfo.freeTimeDict[i]);
|
| | | float minutes = Mathf.Max(0.1f, (float)t.TotalMinutes);
|
| | | float seconds = Mathf.Max(0.1f, (float)t.TotalSeconds);
|
| | |
| | | battleResultDict[index] = result; |
| | | } |
| | | |
| | | DesignDebug.Log("阶段胜利:" + index + "结果:" + result); |
| | | DebugEx.Log("阶段胜利:" + index + "结果:" + result); |
| | | } |
| | | |
| | | if(bettingResultAct != null) |
| | |
| | | {
|
| | | time += Time.deltaTime;
|
| | | rewardSlider.value = sliderValue + speed * time;
|
| | | DesignDebug.Log("进度:" + rewardSlider.value);
|
| | | DebugEx.Log("进度:" + rewardSlider.value);
|
| | | if(rewardSlider.value >= value)
|
| | | {
|
| | | isChange = false;
|
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.LogError(ex);
|
| | | DebugEx.LogError(ex);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | catch (Exception e)
|
| | | {
|
| | | DesignDebug.LogErrorFormat("不存在该Npc {0}", npcId);
|
| | | DebugEx.LogErrorFormat("不存在该Npc {0}", npcId);
|
| | | }
|
| | | break;
|
| | | }
|
| | |
| | | {
|
| | | callBack(ok, message);
|
| | | callBack = null;
|
| | | DesignDebug.LogFormat("Http 数据通信 {0},请求数据结果:{1},内容:{2}", this.url, ok, message);
|
| | | DebugEx.LogFormat("Http 数据通信 {0},请求数据结果:{1},内容:{2}", this.url, ok, message);
|
| | | }
|
| | |
|
| | | Destroy(this.gameObject);
|
| | |
| | | {
|
| | | if (_url == null || _url.Length == 0)
|
| | | {
|
| | | DesignDebug.LogError("PHPDataComm post 参数有错");
|
| | | DebugEx.LogError("PHPDataComm post 参数有错");
|
| | | if (_result != null)
|
| | | {
|
| | | _result(false, string.Empty);
|
| | |
| | | {
|
| | | if (!string.IsNullOrEmpty(PostData.text))
|
| | | {
|
| | | DesignDebug.LogFormat("WWW 数据通信,请求数据成功:{0}", PostData.text);
|
| | | DebugEx.LogFormat("WWW 数据通信,请求数据成功:{0}", PostData.text);
|
| | | isSuccess = true;
|
| | | if (_result != null)
|
| | | {
|
| | |
| | | private bool IsEnoughMoney(int moneyCnt)
|
| | | {
|
| | | ulong haveMoney = UIHelper.GetMoneyCnt(1);
|
| | | DesignDebug.Log("IsEnoughMoney" + haveMoney);
|
| | | DebugEx.Log("IsEnoughMoney" + haveMoney);
|
| | | if(haveMoney >= (ulong)moneyCnt)
|
| | | {
|
| | | return true;
|
| | |
| | | private void CreateGetItem(int index)
|
| | | {
|
| | | int length = BoxModel.getItems.Length;
|
| | | DesignDebug.Log("CreateGetItem:" + length); |
| | | DebugEx.Log("CreateGetItem:" + length); |
| | | if (index < length)
|
| | | {
|
| | | GameObject item = Instantiate(getItem);
|
| | |
| | |
|
| | | useDataDict = ConfigParse.Analysis(info.UserData);
|
| | | this.equipScore = modelInterface.SetEquipScore(itemInfo.ItemID,useDataDict);
|
| | | DesignDebug.Log("Pack:" + packType + "ID:" + info.ItemID + "GUID:" + info.ItemGUID);
|
| | | DebugEx.Log("Pack:" + packType + "ID:" + info.ItemID + "GUID:" + info.ItemGUID);
|
| | | List<int> itemEffectTime = GetUseDataModel((int)ItemUseDataKey.Def_IudetCreateTime);
|
| | | if(itemEffectTime != null && itemEffectTime[0] != 0 && chinItemModel.ExpireTime > 0)
|
| | | {
|
| | | DesignDebug.Log("创建时间:" + itemEffectTime[0]);
|
| | | DebugEx.Log("创建时间:" + itemEffectTime[0]);
|
| | | //System.DateTime startTime = TimeZone.CurrentTimeZone.ToLocalTime(new System.DateTime(1970, 1, 1)); // 当地时区
|
| | | //DateTime dt = startTime.AddSeconds(itemEffectTime[0]);
|
| | | //DesignDebug.Log("创建DataTime:" + dt);
|
| | |
| | | switch (sysID)
|
| | | {
|
| | | case "Guardian_Timeout":
|
| | | DesignDebug.Log("Guardian_Timeout:" + list.Count);
|
| | | DebugEx.Log("Guardian_Timeout:" + list.Count);
|
| | | if (list.Count > 1)
|
| | | {
|
| | | guardOverdueIndex = int.Parse(list[1].ToString());
|
| | |
| | |
|
| | | #if UNITY_EDITOR
|
| | | string itemInfo = StringUtility.Contact("物品ID:",curAttrData.itemId,"物品名称:",curAttrData.itemConfig.ItemName);
|
| | | DesignDebug.Log(itemInfo);
|
| | | DebugEx.Log(itemInfo);
|
| | | #endif
|
| | |
|
| | | switch (curAttrData.winType)
|
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex.ToString());
|
| | | DebugEx.Log(ex.ToString());
|
| | | }
|
| | | return itemEffectDict;
|
| | | }
|
| | |
| | | winType = ItemWinType.guardWin;
|
| | | break;
|
| | | default:
|
| | | DesignDebug.Log("没有此物品的弹框类型" + this.itemConfig.Template.Trim());
|
| | | DebugEx.Log("没有此物品的弹框类型" + this.itemConfig.Template.Trim());
|
| | | break;
|
| | | }
|
| | | }
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | DesignDebug.Log("属性表中不存在此属性:" + id + "丹药Id" + this.itemId);
|
| | | DebugEx.Log("属性表中不存在此属性:" + id + "丹药Id" + this.itemId);
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex.ToString());
|
| | | DebugEx.Log(ex.ToString());
|
| | | }
|
| | |
|
| | |
|
| | |
| | | {
|
| | | Equation.Instance.AddKeyValue("AtkSpeedC",0);
|
| | | }
|
| | | DesignDebug.Log("评分:" + Equation.Instance.Eval<double>(_equipGSFormula.Numerical1));
|
| | | DebugEx.Log("评分:" + Equation.Instance.Eval<double>(_equipGSFormula.Numerical1));
|
| | | return Equation.Instance.Eval<int>(_equipGSFormula.Numerical1);
|
| | | }
|
| | | return 0;
|
| | |
| | |
|
| | | public double GetTimeOffest(DateTime getTime)
|
| | | {
|
| | | DesignDebug.Log("现在时间:" + TimeUtility.ServerNow + "获得时间:" + getTime);
|
| | | DebugEx.Log("现在时间:" + TimeUtility.ServerNow + "获得时间:" + getTime);
|
| | | //TimeUtility.SyncServerTime();
|
| | | TimeSpan t = TimeUtility.ServerNow - getTime;
|
| | | DesignDebug.Log("时间差:" + t.TotalSeconds);
|
| | | DebugEx.Log("时间差:" + t.TotalSeconds);
|
| | | return t.TotalSeconds;
|
| | | }
|
| | |
|
| | |
| | | itemInfo.IsLocked = item.IsLocked;
|
| | | itemInfo.ItemGUID = item.ItemGUID;
|
| | | playerPackDict[type].SetPackModel(itemInfo);
|
| | | DesignDebug.Log("Add:" + item.ItemGUID);
|
| | | DebugEx.Log("Add:" + item.ItemGUID);
|
| | | if(RefreshItemCountAct != null)
|
| | | {
|
| | | RefreshItemCountAct(type, itemInfo.ItemPlace, itemInfo.ItemID);
|
| | |
| | | {
|
| | | ItemModel itemModel = modellist[0];
|
| | | bool isExist = StatusMgr.Instance.IsExist(PlayerDatas.Instance.hero.ServerInstID, itemModel.chinItemModel.AddSkill1);
|
| | | DesignDebug.Log("Buff是否存在" + isExist);
|
| | | DebugEx.Log("Buff是否存在" + isExist);
|
| | | if (itemUseAct != null && !isExist)
|
| | | {
|
| | | itemUseAct(PackType.rptItem, itemModel.itemInfo.ItemGUID);
|
| | |
| | | string strPro = "";
|
| | | if (_playerProModel == null)
|
| | | {
|
| | | DesignDebug.LogError("不存在此属性" + proId);
|
| | | DebugEx.LogError("不存在此属性" + proId);
|
| | | return "";
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | if (guid != itemAttrData.guid)
|
| | | {
|
| | | DesignDebug.Log("刷新:" + guid + "当前:" + itemAttrData.guid);
|
| | | DebugEx.Log("刷新:" + guid + "当前:" + itemAttrData.guid);
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | |
|
| | | DestroyGetItemlist();
|
| | | GetList.Clear();
|
| | | DesignDebug.Log("CreateChooseCell" + BoxModel.selectDict.Count);
|
| | | DebugEx.Log("CreateChooseCell" + BoxModel.selectDict.Count);
|
| | | foreach(int id in BoxModel.selectDict.Keys)
|
| | | {
|
| | | int itemId = id;
|
| | |
| | | string strPro = "";
|
| | | if (_playerProModel == null)
|
| | | {
|
| | | DesignDebug.LogError("不存在此属性" + proId);
|
| | | DebugEx.LogError("不存在此属性" + proId);
|
| | | return "";
|
| | | }
|
| | |
|
| | |
| | | var languageInfo = ConfigManager.Instance.GetTemplate<LanguageConfig>(_id);
|
| | | if (languageInfo == null)
|
| | | {
|
| | | DesignDebug.LogFormat("缺少语言表配置,id: {0}", _id);
|
| | | DebugEx.LogFormat("缺少语言表配置,id: {0}", _id);
|
| | | return string.Empty;
|
| | | }
|
| | |
|
| | | if (string.IsNullOrEmpty(languageInfo.content))
|
| | | {
|
| | | DesignDebug.LogFormat("语言内容为空,id: {0}", _id);
|
| | | DebugEx.LogFormat("语言内容为空,id: {0}", _id);
|
| | | }
|
| | |
|
| | | return languageInfo.content;
|
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.LogFormat("语言内容格式错误,id: {0}", _id);
|
| | | DebugEx.LogFormat("语言内容格式错误,id: {0}", _id);
|
| | | return content;
|
| | | }
|
| | | }
|
| | |
| | | var languageInfo = ConfigManager.Instance.GetTemplate<PriorLanguageConfig>(_id);
|
| | | if (languageInfo == null)
|
| | | {
|
| | | DesignDebug.LogFormat("缺少语言表配置,id: {0}", _id);
|
| | | DebugEx.LogFormat("缺少语言表配置,id: {0}", _id);
|
| | | return string.Empty;
|
| | | }
|
| | |
|
| | | if (string.IsNullOrEmpty(languageInfo.Content))
|
| | | {
|
| | | DesignDebug.LogFormat("语言内容为空,id: {0}", _id);
|
| | | DebugEx.LogFormat("语言内容为空,id: {0}", _id);
|
| | | }
|
| | |
|
| | | return languageInfo.Content;
|
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.LogFormat("语言内容格式错误,id: {0}", _id);
|
| | | DebugEx.LogFormat("语言内容格式错误,id: {0}", _id);
|
| | | return content;
|
| | | }
|
| | | }
|
| | |
| | | if (!_ok)
|
| | | {
|
| | | busy = false;
|
| | | DesignDebug.LogError(_result);
|
| | | DebugEx.LogError(_result);
|
| | | NetLinkWin.Hide();
|
| | | return;
|
| | | }
|
| | |
| | | {
|
| | | if (!_ok)
|
| | | {
|
| | | DesignDebug.Log("AccountPadGet Error:" + _result);
|
| | | DebugEx.Log("AccountPadGet Error:" + _result);
|
| | | if (registerResultEvent != null)
|
| | | {
|
| | | registerResultEvent(false);
|
| | |
| | | var config = ConfigManager.Instance.GetTemplate<TASKINFOConfig>(_AllMissionDict[taskID].InforList); |
| | | if (config == null) |
| | | { |
| | | DesignDebug.LogError("配置表格出错"); |
| | | DebugEx.LogError("配置表格出错"); |
| | | } |
| | | for (int i = 0; i < MainlineTaskType.Length; i++) |
| | | { |
| | |
| | | break; |
| | | case 3: |
| | | |
| | | DesignDebug.LogError("集团"); |
| | | DebugEx.LogError("集团"); |
| | | break; |
| | | case 4: |
| | | |
| | | DesignDebug.LogError("组队"); |
| | | DebugEx.LogError("组队"); |
| | | break; |
| | | case 5: |
| | | |
| | |
| | | }
|
| | | else
|
| | | {
|
| | | DesignDebug.LogError("TaskInFo中没有这个Key。。" + string.Format(platercContentKey, stepNum));
|
| | | DebugEx.LogError("TaskInFo中没有这个Key。。" + string.Format(platercContentKey, stepNum));
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | var taskInfo = ConfigManager.Instance.GetTemplate<TASKINFOConfig>(string.Format(npcContentKey, stepNum));
|
| | | if (taskInfo == null)
|
| | | {
|
| | | DesignDebug.LogError("TASKINFOConfig中没有找到对应的Key");
|
| | | DebugEx.LogError("TASKINFOConfig中没有找到对应的Key");
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | DesignDebug.LogError("任务表格PyTaskInfo配置缺失");
|
| | | DebugEx.LogError("任务表格PyTaskInfo配置缺失");
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | DesignDebug.LogError("任务表格PyTaskInfo配置缺失");
|
| | | DebugEx.LogError("任务表格PyTaskInfo配置缺失");
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | var config = ConfigManager.Instance.GetTemplate<TASKINFOConfig>(taskmodel.allMissionDict[taskID].Name);
|
| | | if (config == null)
|
| | | {
|
| | | DesignDebug.LogError("任务表格PyTaskInfo配置缺失");
|
| | | DebugEx.LogError("任务表格PyTaskInfo配置缺失");
|
| | | return null;
|
| | | }
|
| | | string taskName = config.show_writing;
|
| | |
| | | } |
| | | else |
| | | { |
| | | DesignDebug.LogError("没有获取到地图表中响应的地图ID"+ MapID); |
| | | DebugEx.LogError("没有获取到地图表中响应的地图ID"+ MapID); |
| | | } |
| | | |
| | | } |
| | |
| | | var configItem = ConfigManager.Instance.GetTemplate<ItemConfig>(Item);
|
| | | var skillconfig = ConfigManager.Instance.GetTemplate<SkillConfig>(configItem.AddSkill1);
|
| | | int SkillTypeID = int.Parse(ConfigManager.Instance.GetTemplate<FuncConfigConfig>("IntroductionItem").Numerical2);
|
| | | DesignDebug.Log("请德龙睁开眼睛说话.........");
|
| | | DebugEx.Log("请德龙睁开眼睛说话.........");
|
| | | if (skillconfig.SkillTypeID == SkillTypeID)
|
| | | {
|
| | | int buffLv = 0;
|
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | var config = ConfigManager.Instance.GetTemplate<PyTaskConfig>(MissionID);
|
| | | if (config == null)
|
| | | {
|
| | | DesignDebug.LogError(MissionID + "表格中不存在此任务ID");
|
| | | DebugEx.LogError(MissionID + "表格中不存在此任务ID");
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | var taskname = taskmodel.SideQuestsDic[TaskId].Name;
|
| | | if (ConfigManager.Instance.GetTemplate<TASKINFOConfig>(taskname) == null)
|
| | | {
|
| | | DesignDebug.LogError("TASKINFO任务表格没有获取到该任务名称"+ taskname);
|
| | | DebugEx.LogError("TASKINFO任务表格没有获取到该任务名称"+ taskname);
|
| | | return;
|
| | | }
|
| | | sideMissionTitleBtton.TitleName.text= ConfigManager.Instance.GetTemplate<TASKINFOConfig>(taskname).show_writing;//任务名
|
| | |
| | | DestroyObject(_Grid.GetChild(i).gameObject);
|
| | | }
|
| | | }
|
| | | DesignDebug.Log("没有任务奖励");
|
| | | DebugEx.Log("没有任务奖励");
|
| | | return;
|
| | | }
|
| | | string _RewardStr = ConfigManager.Instance.GetTemplate<TASKINFOConfig>(taskmodel.SideQuestsDic[taskID].RewardList).show_writing;
|
| | |
| | | } |
| | | if (!_SkillAndPreTreasure.ContainsKey(_PlayerSkillData.id)) |
| | | { |
| | | DesignDebug.LogError("法宝表没有对应的技能ID" + _PlayerSkillData.id); |
| | | DebugEx.LogError("法宝表没有对应的技能ID" + _PlayerSkillData.id); |
| | | return; |
| | | } |
| | | else |
| | |
| | | }
|
| | | else
|
| | | {
|
| | | DesignDebug.LogError("任务表格PyTaskInfo配置缺失");
|
| | | DebugEx.LogError("任务表格PyTaskInfo配置缺失");
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | var config = ConfigManager.Instance.GetTemplate<TASKINFOConfig>(_AllMissionDict[taskID].InforList);
|
| | | if (config == null)
|
| | | {
|
| | | DesignDebug.LogError("任务表格PyTaskInfo配置缺失");
|
| | | DebugEx.LogError("任务表格PyTaskInfo配置缺失");
|
| | | return null;
|
| | | }
|
| | | string taskName = config.show_writing;
|
| | |
| | | var taskconfig = ConfigManager.Instance.GetTemplate<TASKINFOConfig>(taskListModel.TaskTarget);
|
| | | if (taskconfig == null)
|
| | | {
|
| | | DesignDebug.LogError("告诉TT任务目标没有这条数据(TASKINFO)" + taskListModel.TaskTarget);
|
| | | DebugEx.LogError("告诉TT任务目标没有这条数据(TASKINFO)" + taskListModel.TaskTarget);
|
| | | return;
|
| | | }
|
| | | string str = ConfigManager.Instance.GetTemplate<TASKINFOConfig>(taskListModel.TaskTarget).show_writing;
|
| | |
| | | var config = ConfigManager.Instance.GetTemplate<TASKINFOConfig>(_AllMissionDict[_TaskId].Name);
|
| | | if (config == null)
|
| | | {
|
| | | DesignDebug.LogError("任务表格配置错误");
|
| | | DebugEx.LogError("任务表格配置错误");
|
| | | return;
|
| | | }
|
| | | _TextTaskName.text = config.show_writing;
|
| | | var taskInfoConfig = ConfigManager.Instance.GetTemplate<TASKINFOConfig>(StrConversa);
|
| | | if (taskInfoConfig == null)
|
| | | {
|
| | | DesignDebug.LogError("任务表格配置错误");
|
| | | DebugEx.LogError("任务表格配置错误");
|
| | | return;
|
| | | }
|
| | | if (taskmodel.BountyDic.ContainsKey(_TaskId) || taskmodel.FairyAuDic.ContainsKey(_TaskId))
|
| | |
| | | var rewardTaskInfoConfig = ConfigManager.Instance.GetTemplate<TASKINFOConfig>(_AllMissionDict[_TaskId].RewardList);
|
| | | if (rewardTaskInfoConfig == null)
|
| | | {
|
| | | DesignDebug.LogError("任务表格配置错误");
|
| | | DebugEx.LogError("任务表格配置错误");
|
| | | return;
|
| | | }
|
| | | string _RewardStr = TaskAllocation.Instance.GetTaskInfo(rewardTaskInfoConfig.show_writing, _TaskId);//获取奖励信息
|
| | |
| | | { |
| | | if (PlayerDatas.Instance.skill.GetSKillById(190) == null) |
| | | { |
| | | DesignDebug.Log("技能未解锁"); |
| | | DebugEx.Log("技能未解锁"); |
| | | return; |
| | | } |
| | | |
| | |
| | | { |
| | | if (indexSkillDataDict[0] == null) |
| | | { |
| | | DesignDebug.Log("技能未解锁"); |
| | | DebugEx.Log("技能未解锁"); |
| | | return; |
| | | } |
| | | |
| | |
| | | |
| | | if (indexSkillDataDict[1] == null) |
| | | { |
| | | DesignDebug.Log("技能未解锁"); |
| | | DebugEx.Log("技能未解锁"); |
| | | return; |
| | | } |
| | | |
| | |
| | | |
| | | if (indexSkillDataDict[2] == null) |
| | | { |
| | | DesignDebug.Log("技能未解锁"); |
| | | DebugEx.Log("技能未解锁"); |
| | | return; |
| | | } |
| | | |
| | |
| | | |
| | | if (indexSkillDataDict[3] == null) |
| | | { |
| | | DesignDebug.Log("技能未解锁"); |
| | | DebugEx.Log("技能未解锁"); |
| | | return; |
| | | } |
| | | |
| | |
| | | |
| | | if (indexSkillDataDict[4] == null) |
| | | { |
| | | DesignDebug.Log("技能未解锁"); |
| | | DebugEx.Log("技能未解锁"); |
| | | return; |
| | | } |
| | | |
| | |
| | | |
| | | if (indexSkillDataDict[5] == null) |
| | | { |
| | | DesignDebug.Log("技能未解锁"); |
| | | DebugEx.Log("技能未解锁"); |
| | | return; |
| | | } |
| | | |
| | |
| | | |
| | | if (indexSkillDataDict[6] == null) |
| | | { |
| | | DesignDebug.Log("技能未解锁"); |
| | | DebugEx.Log("技能未解锁"); |
| | | return; |
| | | } |
| | | |
| | |
| | | case 1: |
| | | if (PlayerDatas.Instance.skill.GetSKillById(150) == null) |
| | | { |
| | | DesignDebug.Log("技能未解锁"); |
| | | DebugEx.Log("技能未解锁"); |
| | | return; |
| | | } |
| | | |
| | |
| | | case 2: |
| | | if (PlayerDatas.Instance.skill.GetSKillById(250) == null) |
| | | { |
| | | DesignDebug.Log("技能未解锁"); |
| | | DebugEx.Log("技能未解锁"); |
| | | return; |
| | | } |
| | | |
| | |
| | | { |
| | | if (indexSkillDataDict[0] == null) |
| | | { |
| | | DesignDebug.Log("技能未解锁"); |
| | | DebugEx.Log("技能未解锁"); |
| | | return; |
| | | } |
| | | |
| | |
| | | |
| | | if (indexSkillDataDict[1] == null) |
| | | { |
| | | DesignDebug.Log("技能未解锁"); |
| | | DebugEx.Log("技能未解锁"); |
| | | return; |
| | | } |
| | | |
| | |
| | | |
| | | if (indexSkillDataDict[2] == null) |
| | | { |
| | | DesignDebug.Log("技能未解锁"); |
| | | DebugEx.Log("技能未解锁"); |
| | | return; |
| | | } |
| | | |
| | |
| | | { |
| | | if (indexSkillDataDict[3] == null) |
| | | { |
| | | DesignDebug.Log("技能未解锁"); |
| | | DebugEx.Log("技能未解锁"); |
| | | return; |
| | | } |
| | | |
| | |
| | | { |
| | | if (indexSkillDataDict[4] == null) |
| | | { |
| | | DesignDebug.Log("技能未解锁"); |
| | | DebugEx.Log("技能未解锁"); |
| | | return; |
| | | } |
| | | |
| | |
| | | { |
| | | if (indexSkillDataDict[5] == null) |
| | | { |
| | | DesignDebug.Log("技能未解锁"); |
| | | DebugEx.Log("技能未解锁"); |
| | | return; |
| | | } |
| | | |
| | |
| | | { |
| | | if (indexSkillDataDict[6] == null) |
| | | { |
| | | DesignDebug.Log("技能未解锁"); |
| | | DebugEx.Log("技能未解锁"); |
| | | return; |
| | | } |
| | | |
| | |
| | | case 1: |
| | | if (PlayerDatas.Instance.skill.GetSKillById(150) == null) |
| | | { |
| | | DesignDebug.Log("技能未解锁"); |
| | | DebugEx.Log("技能未解锁"); |
| | | return; |
| | | } |
| | | |
| | |
| | | case 2: |
| | | if (PlayerDatas.Instance.skill.GetSKillById(250) == null) |
| | | { |
| | | DesignDebug.Log("技能未解锁"); |
| | | DebugEx.Log("技能未解锁"); |
| | | return; |
| | | } |
| | | |
| | |
| | | { |
| | | if (PlayerDatas.Instance.skill.GetSKillById(190) == null) |
| | | { |
| | | DesignDebug.Log("技能未解锁"); |
| | | DebugEx.Log("技能未解锁"); |
| | | return; |
| | | } |
| | | |
| | |
| | | }
|
| | | else
|
| | | {
|
| | | DesignDebug.LogFormat("错误的Boss信息提示配置{0}", _bossNotifyCfg.SkillID);
|
| | | DebugEx.LogFormat("错误的Boss信息提示配置{0}", _bossNotifyCfg.SkillID);
|
| | | }
|
| | | m_BossIcon.SetNativeSize();
|
| | | break;
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | DesignDebug.LogError(string.Format("物品表里没有ID{0}对应的物品", id));
|
| | | DebugEx.LogError(string.Format("物品表里没有ID{0}对应的物品", id));
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | }
|
| | | catch (Exception e)
|
| | | {
|
| | | DesignDebug.Log(e.Message);
|
| | | DebugEx.Log(e.Message);
|
| | | }
|
| | | }
|
| | | int itemCount = 0;
|
| | |
| | | }
|
| | | catch (Exception e)
|
| | | {
|
| | | DesignDebug.Log(e.Message);
|
| | | DebugEx.Log(e.Message);
|
| | | }
|
| | | if (_json != null)
|
| | | {
|
| | |
| | | }
|
| | | catch (Exception e)
|
| | | {
|
| | | DesignDebug.Log(e.Message);
|
| | | DebugEx.Log(e.Message);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | catch (Exception e)
|
| | | {
|
| | | DesignDebug.Log(e.Message);
|
| | | DebugEx.Log(e.Message);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | } |
| | | catch (System.Exception e) |
| | | { |
| | | DesignDebug.LogError(e.Message); |
| | | DebugEx.LogError(e.Message); |
| | | } |
| | | return result; |
| | | } |
| | |
| | | }
|
| | | catch (Exception e)
|
| | | {
|
| | | DesignDebug.Log(e.StackTrace);
|
| | | DebugEx.Log(e.StackTrace);
|
| | | }
|
| | | }
|
| | | AnalysisSysmsg(cfg);
|
| | |
| | | } |
| | | void ConsumptionGoodButton()//消耗品详情按钮 |
| | | { |
| | | DesignDebug.LogError("获取消耗的品"); |
| | | DebugEx.LogError("获取消耗的品"); |
| | | } |
| | | |
| | | void PromotionBtn()//技能学习安妞 |
| | |
| | | _MountStoneItem.UserBtn.AddListener(() =>
|
| | | {
|
| | | C0702_tagCUseItem _tagUse = new C0702_tagCUseItem();
|
| | | DesignDebug.LogWarning(bagIndex[0]);
|
| | | DebugEx.LogWarning(bagIndex[0]);
|
| | | _tagUse.ItemIndex = (byte)bagIndex[0];
|
| | | GameNetSystem.Instance.SendInfo(_tagUse);
|
| | |
|
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | ReportGuideComplete();
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | NewBieCenter.Instance.FinishNewBieGuide(NewBieCenter.Instance.currentGuide);
|
| | | }
|
| | |
|
| | | timer += Time.deltaTime;
|
| | | if (timer > 5f)
|
| | | {
|
| | | DesignDebug.LogFormat("新手引导:{0}因为点击对象获取超时异常结束,<color=yellow>张维杰</color>,请检查配置!", NewBieCenter.Instance.currentGuide);
|
| | | DebugEx.LogFormat("新手引导:{0}因为点击对象获取超时异常结束,<color=yellow>张维杰</color>,请检查配置!", NewBieCenter.Instance.currentGuide);
|
| | | NewBieCenter.Instance.FinishNewBieGuide(NewBieCenter.Instance.currentGuide);
|
| | | yield break;
|
| | | }
|
| | |
| | | _MountStoneItem.UserBtn.AddListener(() =>
|
| | | {
|
| | | C0702_tagCUseItem _tagUse = new C0702_tagCUseItem();
|
| | | DesignDebug.LogWarning(bagIndex[0]);
|
| | | DebugEx.LogWarning(bagIndex[0]);
|
| | | _tagUse.ItemIndex = (byte)bagIndex[0];
|
| | | GameNetSystem.Instance.SendInfo(_tagUse);
|
| | |
|
| | |
| | |
|
| | | public double GetTimeOffest(DateTime dieTime)
|
| | | {
|
| | | DesignDebug.Log("现在时间" + TimeUtility.ServerNow);
|
| | | DebugEx.Log("现在时间" + TimeUtility.ServerNow);
|
| | | TimeSpan t = TimeUtility.ServerNow - dieTime;
|
| | | return t.TotalSeconds;
|
| | | }
|
| | |
| | | {
|
| | | IsOpen = false;
|
| | | ExitDungeon();
|
| | | DesignDebug.LogError(e.Message);
|
| | | DebugEx.LogError(e.Message);
|
| | | return;
|
| | | }
|
| | | CameraController.Instance.CameraObject.gameObject.SetActive(false);
|
| | |
| | | } |
| | | } |
| | | _practiceTypeCtrl.Restart(); |
| | | DesignDebug.Log("Cell数量" + _practiceTypeCtrl.GetNumberOfCells(_practiceTypeCtrl.m_Scorller)); |
| | | DebugEx.Log("Cell数量" + _practiceTypeCtrl.GetNumberOfCells(_practiceTypeCtrl.m_Scorller)); |
| | | if (_practiceTypeCtrl.GetNumberOfCells(_practiceTypeCtrl.m_Scorller) < _practiceTypeCtrl.maxCellCnt) |
| | | { |
| | | _practiceTypeCtrl.mScrollRect.vertical = false; |
| | |
| | | {
|
| | | if (_parent <= 0)
|
| | | {
|
| | | DesignDebug.Log("无效的父对象Id!");
|
| | | DebugEx.Log("无效的父对象Id!");
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | catch (Exception e)
|
| | | {
|
| | | DesignDebug.LogError(e.Message);
|
| | | DebugEx.LogError(e.Message);
|
| | | }
|
| | | //title.expireTime = expireTime;
|
| | | title.outTimeNotify = false;
|
| | |
| | | }
|
| | | catch (Exception e)
|
| | | {
|
| | | DesignDebug.Log(e.StackTrace);
|
| | | DebugEx.Log(e.StackTrace);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | ItemConfig _itemCfg = ConfigManager.Instance.GetTemplate<ItemConfig>(data.id);
|
| | | if (_itemCfg == null)
|
| | | {
|
| | | DesignDebug.LogError("不存在的物品id" + data.id);
|
| | | DebugEx.LogError("不存在的物品id" + data.id);
|
| | | return;
|
| | | }
|
| | | if (_itemCfg.Type == RuneModel.RUNE_TYPE)
|
| | |
| | | var quickRange = quickSettingDic[type]; |
| | | if (index * quickRange.single + value.Length > quickRange.length || value.Length > quickRange.single) |
| | | { |
| | | DesignDebug.LogErrorFormat("存储的数据超过最大长度!{0}", type); |
| | | DebugEx.LogErrorFormat("存储的数据超过最大长度!{0}", type); |
| | | return; |
| | | } |
| | | textBuilder.Length = 0; |
| | |
| | | var _skillJobKey = (int)Math.Pow(2, PlayerDatas.Instance.baseData.Job);
|
| | | if (!model.skillActDict.ContainsKey(_skillJobKey))
|
| | | {
|
| | | DesignDebug.LogErrorFormat("不存在该职业的技能{0}", _skillJobKey);
|
| | | DebugEx.LogErrorFormat("不存在该职业的技能{0}", _skillJobKey);
|
| | | return;
|
| | | }
|
| | | Dictionary<int, List<SkillConfig>> dic = model.skillActDict[_skillJobKey];
|
| | |
| | | /// <param name="buylimit"></param>
|
| | | public void RefreshBuyShopLimitModel(HA802_tagMCShopItemDayBuyCntInfo buylimit)
|
| | | {
|
| | | DesignDebug.Log("RefreshBuyShopLimitModel" + buylimit.Count);
|
| | | DebugEx.Log("RefreshBuyShopLimitModel" + buylimit.Count);
|
| | | if (buylimit.Count > 0)
|
| | | {
|
| | | int i = 0;
|
| | |
| | |
|
| | | public void GetBuyResult(HA811_tagMCShoppingResult result)
|
| | | {
|
| | | DesignDebug.Log("GetBuyResult");
|
| | | DebugEx.Log("GetBuyResult");
|
| | | StoreConfig tagStore = ConfigManager.Instance.GetTemplate<StoreConfig>((int)result.ItemIndex);
|
| | | if (tagStore != null)
|
| | | {
|
| | |
| | |
|
| | | private bool IsShowRedPoint(int equipPlace, SuitType suitType)
|
| | | {
|
| | | DesignDebug.Log("IsShowRedPoint:" + equipPlace);
|
| | | DebugEx.Log("IsShowRedPoint:" + equipPlace);
|
| | | int groupType = GetGroupType(equipPlace);
|
| | | ItemModel itemModel = playerPack.GetItemModelByIndex(PackType.rptEquip, equipPlace);
|
| | | if (groupType == 0 || itemModel == null)
|
| | |
| | | List<int> placelist = null;
|
| | | int nowSuitCnt = GetSameSuitCnt(suitType, equipPlace, suitLv, out placelist);
|
| | | int willSuitCnt = GetSameSuitCnt(suitType, equipPlace, suitLv + 1, out placelist) + 1;
|
| | | DesignDebug.Log("装备位置:" + equipPlace);
|
| | | DebugEx.Log("装备位置:" + equipPlace);
|
| | | if (IsAdaptRules(groupType, nowSuitCnt, willSuitCnt, attrConfig))
|
| | | {
|
| | | isShow = true;
|
| | |
| | | foreach(var id in needMatCntDict[groupType].Keys)
|
| | | {
|
| | | int haveCnt = playerPack.GetItemCountByID(PackType.rptItem, id);
|
| | | DesignDebug.Log(suitType + "装备位置:" + partlist[i]+ "有的数量" + haveCnt + "需要数量:" + needMatCntDict[groupType][id]);
|
| | | DebugEx.Log(suitType + "装备位置:" + partlist[i]+ "有的数量" + haveCnt + "需要数量:" + needMatCntDict[groupType][id]);
|
| | | if (haveCnt < needMatCntDict[groupType][id])
|
| | | {
|
| | | isReach = false;
|
| | |
| | | suitData = SuitModel.GetSingleSuitAttr(suitID);
|
| | | if(!suitData.Equals(default(ActivateSuitData)))
|
| | | {
|
| | | DesignDebug.Log("RefreshUI:" + suitID);
|
| | | DebugEx.Log("RefreshUI:" + suitID);
|
| | | string suitName = StringUtility.Contact(suitData.attrConfig.name, "(", suitData.suitCnt,"/", suitData.attrConfig.count3, ")");
|
| | | suitNameText.text = suitName;
|
| | | if(suitData.attrConfig.suiteType == 1)
|
| | |
| | | return _cfg.MoneyNumber;
|
| | | }
|
| | | }
|
| | | DesignDebug.LogError("表格配置错误");
|
| | | DebugEx.LogError("表格配置错误");
|
| | | return 0;
|
| | | }
|
| | | #endregion
|
| | |
| | | fairyObj.SetActive(true);
|
| | | break;
|
| | | default:
|
| | | DesignDebug.LogError("不存在此洗练群组" + equipWashModel.washType);
|
| | | DebugEx.LogError("不存在此洗练群组" + equipWashModel.washType);
|
| | | break;
|
| | | }
|
| | | }
|
| | |
| | | }
|
| | | break;
|
| | | default:
|
| | | DesignDebug.LogError("不存在此洗练群组" + equipWashModel.washType);
|
| | | DebugEx.LogError("不存在此洗练群组" + equipWashModel.washType);
|
| | | break;
|
| | | }
|
| | | }
|
| | |
| | | for (int i = 0; i < switchBtnLength; i++)
|
| | | {
|
| | | bool isOpen = MathUtility.GetBitValue(setting.OnoffBit, (ushort)i);
|
| | | DesignDebug.Log("SetServerPushModel:" + i + "bool:" + isOpen);
|
| | | DebugEx.Log("SetServerPushModel:" + i + "bool:" + isOpen);
|
| | | pushSetDict.Add(i, isOpen);
|
| | | }
|
| | | AnalysisFreeTime(setting.TimeStr);
|
| | |
| | |
|
| | | private void OnStartHandupAI()
|
| | | {
|
| | | DesignDebug.Log("OnStartHandupAI");
|
| | | DebugEx.Log("OnStartHandupAI");
|
| | | _isAutoHangUp = true;
|
| | | RefreshBagItem();
|
| | | }
|
| | |
|
| | | private void OnStopHandupAI()
|
| | | {
|
| | | DesignDebug.Log("OnStopHandupAI");
|
| | | DebugEx.Log("OnStopHandupAI");
|
| | | _isAutoHangUp = false;
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | if (!_isAutoHangUp)
|
| | | {
|
| | | DesignDebug.Log("请开启自动挂机,否则无法出售");
|
| | | DebugEx.Log("请开启自动挂机,否则无法出售");
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | while(true)
|
| | | {
|
| | | DesignDebug.Log("PlayerReborn");
|
| | | DebugEx.Log("PlayerReborn");
|
| | | time -= 1;
|
| | | if (time <= 0 && DeadModel.playerIsDie)
|
| | | {
|
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | } |
| | | |
| | | private void ProcessUpgradeOk() { |
| | | DesignDebug.Log("test1成功啦!"); |
| | | DebugEx.Log("test1成功啦!"); |
| | | } |
| | | |
| | | private void ProcessUpgradeUnOk(int _error) { |
| | | DesignDebug.Log("test1失败啦!原因是: " + _error); |
| | | DebugEx.Log("test1失败啦!原因是: " + _error); |
| | | } |
| | | |
| | | public void RequestUpgrade2(Action<bool,int> _action) { |
| | |
| | | } |
| | | |
| | | private void ProcessUpgradeOk2() { |
| | | DesignDebug.Log("test2成功啦!"); |
| | | DebugEx.Log("test2成功啦!"); |
| | | } |
| | | |
| | | private void ProcessUpgradeUnOk2(int _error) { |
| | | DesignDebug.Log("test2失败啦!原因是: " + _error); |
| | | DebugEx.Log("test2失败啦!原因是: " + _error); |
| | | } |
| | | |
| | | protected override void BindController() { |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | }
|
| | |
|
| | | return target;
|
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | conditionText.text = Language.Get("TreasureFindHost_Type4",info.targetNum,condiSB.ToString(),GetFindProgressStr(info));
|
| | | break;
|
| | | default:
|
| | | DesignDebug.LogError("暂无此类型需要添加:" + info.type);
|
| | | DebugEx.LogError("暂无此类型需要添加:" + info.type);
|
| | | break;
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | DesignDebug.Log("投资表key值重复" + config.id);
|
| | | DebugEx.Log("投资表key值重复" + config.id);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | public void SendInvestQuest(int type, int index)
|
| | | {
|
| | | int gold = GetInvestGold(type, index);
|
| | | DesignDebug.Log("SendInvestQuest:" + gold);
|
| | | DebugEx.Log("SendInvestQuest:" + gold);
|
| | | CA540_tagCMGoldInvest investGold= new CA540_tagCMGoldInvest();
|
| | | investGold.InvestType = (byte)type;
|
| | | investGold.InvestGold = (uint)gold;
|
| | |
| | | {
|
| | | if (Microphone.devices == null || Microphone.devices.Length == 0)
|
| | | {
|
| | | DesignDebug.Log("请插入麦克风。");
|
| | | DebugEx.Log("请插入麦克风。");
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | |
|
| | | if (Microphone.devices == null || Microphone.devices.Length == 0)
|
| | | {
|
| | | DesignDebug.Log("请插入麦克风。");
|
| | | DebugEx.Log("请插入麦克风。");
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | operation.inDateNotify = true;
|
| | | operation.stepDateNotify = false;
|
| | | DesignDebug.LogFormat("{0} 活动天开始", (Operation)i);
|
| | | DebugEx.LogFormat("{0} 活动天开始", (Operation)i);
|
| | | if (operationStartEvent != null)
|
| | | {
|
| | | operationStartEvent((Operation)i, 1);
|
| | |
| | | {
|
| | | operation.inDateNotify = false;
|
| | | operation.stepDateNotify = true;
|
| | | DesignDebug.LogFormat("{0} 活动天结束", (Operation)i);
|
| | | DebugEx.LogFormat("{0} 活动天结束", (Operation)i);
|
| | | if (operationEndEvent != null)
|
| | | {
|
| | | operationEndEvent((Operation)i, 1);
|
| | |
| | | operation.inTimeNotify = true;
|
| | | operation.stepTimeNotify = false;
|
| | | operation.inAdvanceNotify = false;
|
| | | DesignDebug.LogFormat("{0} 活动时间开始", (Operation)i);
|
| | | DebugEx.LogFormat("{0} 活动时间开始", (Operation)i);
|
| | | if (operationStartEvent != null)
|
| | | {
|
| | | operationStartEvent((Operation)i, 0);
|
| | |
| | | {
|
| | | operation.inTimeNotify = false;
|
| | | operation.stepTimeNotify = true;
|
| | | DesignDebug.LogFormat("{0} 活动时间结束", (Operation)i);
|
| | | DebugEx.LogFormat("{0} 活动时间结束", (Operation)i);
|
| | | if (operationEndEvent != null)
|
| | | {
|
| | | operationEndEvent((Operation)i, 0);
|
| | |
| | | }
|
| | | catch (Exception)
|
| | | {
|
| | | DesignDebug.Log("是不是表格配置有问题");
|
| | | DebugEx.Log("是不是表格配置有问题");
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | }
|
| | | catch (Exception)
|
| | | {
|
| | | DesignDebug.Log("是不是表格配置有问题");
|
| | | DebugEx.Log("是不是表格配置有问题");
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | }
|
| | | finally
|
| | | {
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | DesignDebug.Log(string.Format("{0} 窗口已经打开!", typeof(T)));
|
| | | DebugEx.Log(string.Format("{0} 窗口已经打开!", typeof(T)));
|
| | | }
|
| | | }
|
| | | else
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | DesignDebug.Log(string.Format("{0} 窗口已经打开!", typeof(T)));
|
| | | DebugEx.Log(string.Format("{0} 窗口已经打开!", typeof(T)));
|
| | | }
|
| | |
|
| | | return (T)win;
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | DesignDebug.LogFormat("没有找到窗口:{0}", typeof(T).Name);
|
| | | DebugEx.LogFormat("没有找到窗口:{0}", typeof(T).Name);
|
| | | return null;
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | DesignDebug.Log(string.Format("{0} 窗口已经关闭!", typeof(T)));
|
| | | DebugEx.Log(string.Format("{0} 窗口已经关闭!", typeof(T)));
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | asyncLoad.StopTask(typeof(T).Name);
|
| | | DesignDebug.Log(string.Format("{0} 窗口无法获得!", typeof(T)));
|
| | | DebugEx.Log(string.Format("{0} 窗口无法获得!", typeof(T)));
|
| | | }
|
| | |
|
| | | return win;
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | DesignDebug.Log(string.Format("{0} 窗口已经关闭!", typeof(T)));
|
| | | DebugEx.Log(string.Format("{0} 窗口已经关闭!", typeof(T)));
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | asyncLoad.StopTask(typeof(T).Name);
|
| | | DesignDebug.Log(string.Format("{0} 窗口无法获得!", typeof(T)));
|
| | | DebugEx.Log(string.Format("{0} 窗口无法获得!", typeof(T)));
|
| | | }
|
| | |
|
| | | return win;
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | DesignDebug.Log(string.Format("{0} 窗口无法获得!", typeof(T)));
|
| | | DebugEx.Log(string.Format("{0} 窗口无法获得!", typeof(T)));
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | DesignDebug.Log(string.Format("{0} 窗口已经打开!", typeof(T)));
|
| | | DebugEx.Log(string.Format("{0} 窗口已经打开!", typeof(T)));
|
| | | }
|
| | |
|
| | | return (T)win;
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | DesignDebug.Log(string.Format("{0} 窗口已经打开!", typeof(T)));
|
| | | DebugEx.Log(string.Format("{0} 窗口已经打开!", typeof(T)));
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | DesignDebug.LogFormat("无法获得 {0} 的资源!", prefabName);
|
| | | DebugEx.LogFormat("无法获得 {0} 的资源!", prefabName);
|
| | | }
|
| | |
|
| | | return window;
|
| | |
| | | break;
|
| | | }
|
| | |
|
| | | DesignDebug.Log("WindowJumpTo" + jumpType);
|
| | | DebugEx.Log("WindowJumpTo" + jumpType);
|
| | |
|
| | | GetPreAllOpenWin();
|
| | |
|
| | |
| | | SetJumpLogic<FirstRechargeWin>(_tagWinSearchModel.TABID, true);
|
| | | break;
|
| | | default:
|
| | | DesignDebug.Log("未添加此跳转界面:"+ jumpType);
|
| | | DebugEx.Log("未添加此跳转界面:"+ jumpType);
|
| | | IsJumpState = false;
|
| | | openWindows.Clear();
|
| | | jumpWinNameDict.Clear();
|
| | |
| | | WindowCenter.Instance.jumpWindowCloseEvent += CloseWindow;
|
| | | break;
|
| | | default:
|
| | | DesignDebug.LogError("不存在此界面跳转类型" + _tagWinSearchModel.Type);
|
| | | DebugEx.LogError("不存在此界面跳转类型" + _tagWinSearchModel.Type);
|
| | | break;
|
| | | }
|
| | | }
|
| | |
|
| | | private void CloseWindow(Window obj)
|
| | | {
|
| | | DesignDebug.Log("CloseWindow:" + obj + "跳转阶段:" + jumpPhase);
|
| | | DebugEx.Log("CloseWindow:" + obj + "跳转阶段:" + jumpPhase);
|
| | | if (!jumpWinNameDict.ContainsKey(jumpPhase)) return;
|
| | | if (jumpWinNameDict[jumpPhase] != obj.name)
|
| | | {
|
| | | return;
|
| | | }
|
| | | DesignDebug.Log("关闭界面类型:" + _tagWinSearchModel.Type);
|
| | | DebugEx.Log("关闭界面类型:" + _tagWinSearchModel.Type);
|
| | | WindowCenter.Instance.jumpWindowCloseEvent -= CloseWindow;
|
| | |
|
| | | int i = 0;
|
| | |
| | | jumpPhase -= 1;
|
| | | break;
|
| | | default:
|
| | | DesignDebug.LogError("不存在此界面跳转类型" + _tagWinSearchModel.Type);
|
| | | DebugEx.LogError("不存在此界面跳转类型" + _tagWinSearchModel.Type);
|
| | | break;
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | if (content == null)
|
| | | {
|
| | | DesignDebug.Log("Content 不能为空!");
|
| | | DebugEx.Log("Content 不能为空!");
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | | |
| | | private char OnValidateInput(string text, int charIndex, char addedChar) |
| | | { |
| | | DesignDebug.Log(char.GetUnicodeCategory(addedChar)); |
| | | DebugEx.Log(char.GetUnicodeCategory(addedChar)); |
| | | if (char.GetUnicodeCategory(addedChar) == UnicodeCategory.Surrogate |
| | | || char.GetUnicodeCategory(addedChar) == UnicodeCategory.OtherSymbol |
| | | || char.GetUnicodeCategory(addedChar) == UnicodeCategory.OtherNumber |
| | |
| | | }
|
| | | catch (System.Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | catch (Exception e)
|
| | | {
|
| | | DesignDebug.Log(e);
|
| | | DebugEx.Log(e);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | |
|
| | | if (clothesAnimator == null)
|
| | | {
|
| | | DesignDebug.LogErrorFormat("角色资源: {0} 没有动画控制器", resID);
|
| | | DebugEx.LogErrorFormat("角色资源: {0} 没有动画控制器", resID);
|
| | | }
|
| | |
|
| | | // 动画状态机修改
|
| | |
| | | wingsAnimator = wingsModel.GetComponent<Animator>();
|
| | | if (wingsAnimator == null)
|
| | | {
|
| | | DesignDebug.LogErrorFormat("翅膀资源{0}没有动画控制器", itemID);
|
| | | DebugEx.LogErrorFormat("翅膀资源{0}没有动画控制器", itemID);
|
| | | }
|
| | | wingsAnimator.enabled = true;
|
| | | wingsAnimator.Play("UI_Idle", 0);
|
| | |
| | | { |
| | | if (delay < 0f) |
| | | { |
| | | DesignDebug.LogError("Delaytime should not be less than zero!"); |
| | | DebugEx.LogError("Delaytime should not be less than zero!"); |
| | | yield break; |
| | | } |
| | | if (duration < 0.001f) |
| | | { |
| | | DesignDebug.LogError("Duration should not be less than zero!"); |
| | | DebugEx.LogError("Duration should not be less than zero!"); |
| | | yield break; |
| | | } |
| | | |
| | | if (curve.keys.Length < 2) |
| | | { |
| | | DesignDebug.LogError("不正确的曲线!"); |
| | | DebugEx.LogError("不正确的曲线!"); |
| | | yield break; |
| | | } |
| | | |
| | |
| | | {
|
| | | if (delay < 0f)
|
| | | {
|
| | | DesignDebug.LogError("Delaytime should not be less than zero!");
|
| | | DebugEx.LogError("Delaytime should not be less than zero!");
|
| | | yield break;
|
| | | }
|
| | | if (duration < 0.001f)
|
| | | {
|
| | | DesignDebug.LogError("Duration should not be less than zero!");
|
| | | DebugEx.LogError("Duration should not be less than zero!");
|
| | | yield break;
|
| | | }
|
| | |
|
| | | if (curve.keys.Length < 2)
|
| | | {
|
| | | DesignDebug.LogError("不正确的曲线!");
|
| | | DebugEx.LogError("不正确的曲线!");
|
| | | yield break;
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | catch (Exception e)
|
| | | {
|
| | | DesignDebug.Log(e.Message);
|
| | | DebugEx.Log(e.Message);
|
| | | }
|
| | | for (int i = 0; i < syntonyList.Count; i++)
|
| | | {
|
| | |
| | | {
|
| | | endTime = TimeUtility.ServerNow.AddSeconds(_totalTime);
|
| | | callback = _func;
|
| | | DesignDebug.LogFormat("{0}{1}", type, endTime);
|
| | | DebugEx.LogFormat("{0}{1}", type, endTime);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | } |
| | | catch (System.Exception ex) |
| | | { |
| | | DesignDebug.Log(ex); |
| | | DebugEx.Log(ex); |
| | | } |
| | | finally |
| | | { |
| | |
| | | _output.Flush(); |
| | | } |
| | | catch (Exception e) { |
| | | DesignDebug.LogFormat(e.Message); |
| | | DebugEx.LogFormat(e.Message); |
| | | } |
| | | finally { |
| | | if (_encoder != null) { |
| | |
| | | |
| | | } |
| | | catch (Exception e) { |
| | | DesignDebug.LogFormat(e.Message); |
| | | DebugEx.LogFormat(e.Message); |
| | | } |
| | | finally { |
| | | if (_decoder != null) { |
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | DesignDebug.LogWarningFormat("所回收的go对象 {0} 并不是从池里取得的...", gameObject.name);
|
| | | DebugEx.LogWarningFormat("所回收的go对象 {0} 并不是从池里取得的...", gameObject.name);
|
| | | }
|
| | | m_FreeList.Add(gameObject);
|
| | |
|
| | |
| | | } |
| | | longResult += (long)System.Math.Pow(64, i) * index; |
| | | if(longResult>int.MaxValue) { |
| | | DesignDebug.LogError("超出Int最大值,尝试转换为long类型"); |
| | | DebugEx.LogError("超出Int最大值,尝试转换为long类型"); |
| | | return 0; |
| | | } |
| | | result = (int)longResult; |
| | | } |
| | | catch { |
| | | DesignDebug.LogError("运算溢出"); |
| | | DebugEx.LogError("运算溢出"); |
| | | return 0; |
| | | } |
| | | } |
| | |
| | | {
|
| | | OnCreateRoleTimeRefresh();
|
| | | }
|
| | | DesignDebug.LogFormat("CreateRoleTime {0} CreateDays {1}", createRoleTimeTail, CreateDays);
|
| | | DebugEx.LogFormat("CreateRoleTime {0} CreateDays {1}", createRoleTimeTail, CreateDays);
|
| | | }
|
| | |
|
| | | public static event Action OnServerTimeRefresh;
|
| | |
| | | {
|
| | | DateTime n = new DateTime(vNetData.Year, vNetData.Month, vNetData.Day, vNetData.Hour, vNetData.Minute, vNetData.Second);
|
| | | _serverTime = n;
|
| | | DesignDebug.Log("OnRefreshServerTime月份:"+_serverTime.Month);
|
| | | DebugEx.Log("OnRefreshServerTime月份:"+_serverTime.Month);
|
| | | _checkTime = Time.realtimeSinceStartup;
|
| | | if (OnServerTimeRefresh != null) OnServerTimeRefresh();
|
| | | TimeDownMgr.Instance.Begin(TimeDownMgr.CoolTimeType.SyncServerTime, 60, (float tick) => {
|
| | |
| | |
|
| | | if (_vertexs == null || _vertexs.Count == 0)
|
| | | {
|
| | | DesignDebug.Log("非法顶点数据");
|
| | | DebugEx.Log("非法顶点数据");
|
| | | return Vector2.zero;
|
| | | }
|
| | |
|
| | | if (_axis != 0 && _axis != 1)
|
| | | {
|
| | | DesignDebug.Log("非法轴");
|
| | | DebugEx.Log("非法轴");
|
| | | return Vector2.zero;
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | if (quadPositions == null || quadPositions.Length < 4)
|
| | | {
|
| | | DesignDebug.Log("非法顶点数组");
|
| | | DebugEx.Log("非法顶点数组");
|
| | | return;
|
| | | }
|
| | |
|
| | | if (quadUVs == null || quadUVs.Length < 4)
|
| | | {
|
| | | DesignDebug.Log("非法UV数组");
|
| | | DebugEx.Log("非法UV数组");
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | if (positions == null || positions.Length < 3)
|
| | | {
|
| | | DesignDebug.Log("非法顶点数组");
|
| | | DebugEx.Log("非法顶点数组");
|
| | | return;
|
| | | }
|
| | |
|
| | | if (uvs == null || uvs.Length < 3)
|
| | | {
|
| | | DesignDebug.Log("非法UV数组");
|
| | | DebugEx.Log("非法UV数组");
|
| | | return;
|
| | | }
|
| | |
|