فهرست منبع

寻路配置放到Config目录

tanghai 7 سال پیش
والد
کامیت
d1be913bce

+ 0 - 0
Server/Model/graph.bytes → Config/graph.bytes


+ 1 - 1
Server/Model/Module/Pathfinding/PathfindingComponent.cs

@@ -15,7 +15,7 @@ namespace ETModel
             self.AStarConfig.pathProcessor = self.PathProcessor;
             
             // 读取地图数据
-            self.AStarConfig.graphs = DeserializeHelper.Load("./graph.bytes");
+            self.AStarConfig.graphs = DeserializeHelper.Load("../Config/graph.bytes");
         }
     }
     

+ 1 - 5
Server/Model/Server.Model.csproj

@@ -100,6 +100,7 @@
     </Compile>
     <EmbeddedResource Remove="Libs\**" />
     <None Remove="Libs\**" />
+    <None Remove="graph.bytes" />
   </ItemGroup>
   <ItemGroup>
     <Compile Include="..\..\Unity\Assets\Model\Base\DoubleMap.cs" Link="Base\DoubleMap.cs" />
@@ -349,9 +350,4 @@
       <HintPath>..\ThirdParty\Pathfinding.Ionic.Zip.Reduced.dll</HintPath>
     </Reference>
   </ItemGroup>
-  <ItemGroup>
-    <None Update="graph.bytes">
-      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </None>
-  </ItemGroup>
 </Project>

+ 1 - 6
Unity/Assets/Model/Init.cs

@@ -16,12 +16,7 @@ namespace ETModel
 		private async ETVoid StartAsync()
 		{
 			try
-			{ 
-				if (!Application.unityVersion.StartsWith("2017.4"))
-				{
-					Log.Error($"新人请使用Unity2017.4版本,减少跑demo遇到的问题! 下载地址:\n https://unity3d.com/cn/unity/qa/lts-releases?_ga=2.227583646.282345691.1536717255-1119432033.1499739574");
-				}
-
+			{
 				SynchronizationContext.SetSynchronizationContext(OneThreadSynchronizationContext.Instance);
 
 				DontDestroyOnLoad(gameObject);