Procházet zdrojové kódy

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

tanghai před 8 roky
rodič
revize
225f6ff846

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

@@ -1,4 +1,4 @@
-##### 1.visual studio必须使用vs2017,其它版本不支持,VS2017需要勾选安装以下内容:
+##### 1.visual studio必须使用vs2017(更新到最新版),其它版本不支持,VS2017需要勾选安装以下内容:
 a. .net 桌面开发  
 b. visual studio tools for unity  
 c. .netcore2.0  
@@ -22,7 +22,8 @@ VS2017 15.4版本vstools有bug,Hotfix工程请重新引用UnityEngin跟UnityEn
 1.出现LateUpate找不到表示没编译hotfix。  
 2.中文目录。  
 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)  
 
 群友demo:  
-[斗地主(客户端服务端)](https://github.com/Viagi/LandlordsCore)   
+[斗地主(客户端服务端)](https://github.com/Viagi/LandlordsCore)  
 
+视频教程:  
+[肉饼老师主讲](http://www.taikr.com/my/course/972)   
 __讨论QQ群 : 474643097__

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

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