Ver Fonte

1.修复一个TimerComonent的bug
2.增加视频教程链接,运行指南更新

tanghai há 8 anos atrás
pai
commit
225f6ff846
3 ficheiros alterados com 9 adições e 6 exclusões
  1. 3 2
      Doc/运行指南.md
  2. 3 1
      README.md
  3. 3 3
      Unity/Assets/Scripts/Component/TimerComponent.cs

+ 3 - 2
Doc/运行指南.md

@@ -1,4 +1,4 @@
-##### 1.visual studio必须使用vs2017,其它版本不支持,VS2017需要勾选安装以下内容:
+##### 1.visual studio必须使用vs2017(更新到最新版),其它版本不支持,VS2017需要勾选安装以下内容:
 a. .net 桌面开发  
 a. .net 桌面开发  
 b. visual studio tools for unity  
 b. visual studio tools for unity  
 c. .netcore2.0  
 c. .netcore2.0  
@@ -22,7 +22,8 @@ VS2017 15.4版本vstools有bug,Hotfix工程请重新引用UnityEngin跟UnityEn
 1.出现LateUpate找不到表示没编译hotfix。  
 1.出现LateUpate找不到表示没编译hotfix。  
 2.中文目录。  
 2.中文目录。  
 3.vs没有安装vs tools或者不是最新的vs tools。  
 3.vs没有安装vs tools或者不是最新的vs tools。  
-4.没安装.netcore2.0  
+4.没安装.netcore2.0 
+5.VS要更新到最新的15.5.4版本
 
 
   
   
 ## 测试帧同步  
 ## 测试帧同步  

+ 3 - 1
README.md

@@ -60,6 +60,8 @@ ET框架的服务端是一个强大灵活的分布式服务端架构,完全可
 [linux部署](http://gad.qq.com/article/detail/35973)  
 [linux部署](http://gad.qq.com/article/detail/35973)  
 
 
 群友demo:  
 群友demo:  
-[斗地主(客户端服务端)](https://github.com/Viagi/LandlordsCore)   
+[斗地主(客户端服务端)](https://github.com/Viagi/LandlordsCore)  
 
 
+视频教程:  
+[肉饼老师主讲](http://www.taikr.com/my/course/972)   
 __讨论QQ群 : 474643097__
 __讨论QQ群 : 474643097__

+ 3 - 3
Unity/Assets/Scripts/Component/TimerComponent.cs

@@ -45,6 +45,8 @@ namespace Model
 					break;
 					break;
 				}
 				}
 
 
+				this.timeId.Remove(kv.Key);
+
 				List<long> timeOutId = kv.Value;
 				List<long> timeOutId = kv.Value;
 				foreach (long id in timeOutId)
 				foreach (long id in timeOutId)
 				{
 				{
@@ -54,9 +56,7 @@ namespace Model
 						continue;
 						continue;
 					}
 					}
 					timer.tcs.SetResult(true);
 					timer.tcs.SetResult(true);
-				}
-
-				this.timeId.Remove(kv.Key);
+				}				
 			}
 			}
 		}
 		}