2023-03-18 18:09:36 +03:00
|
|
|
|
using System.IO;
|
|
|
|
|
using DotRecast.Core;
|
|
|
|
|
|
|
|
|
|
namespace DotRecast.Recast.Demo;
|
2023-03-14 17:56:10 +03:00
|
|
|
|
|
|
|
|
|
public static class Program
|
|
|
|
|
{
|
|
|
|
|
public static void Main(string[] args)
|
|
|
|
|
{
|
2023-03-18 18:09:36 +03:00
|
|
|
|
var path = Loader.ToRPath("dungeon.obj");
|
|
|
|
|
path = Path.GetDirectoryName(path);
|
|
|
|
|
if (!string.IsNullOrEmpty(path))
|
|
|
|
|
{
|
|
|
|
|
var workingDirectory = Path.Combine(path, "..");
|
|
|
|
|
workingDirectory = Path.GetFullPath(workingDirectory);
|
|
|
|
|
Directory.SetCurrentDirectory(workingDirectory);
|
|
|
|
|
}
|
|
|
|
|
|
2023-03-14 17:56:10 +03:00
|
|
|
|
var demo = new RecastDemo();
|
|
|
|
|
demo.start();
|
|
|
|
|
}
|
|
|
|
|
}
|