提交 d1be913b 编写于 作者: T tanghai

寻路配置放到Config目录

上级 9d2bcb65
......@@ -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");
}
}
......
......@@ -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>
\ No newline at end of file
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册