DotRecastNetSim/src/DotRecast.Recast.Demo/Program.cs

22 lines
567 B
C#
Raw Normal View History

2023-03-18 18:09:36 +03:00
using System.IO;
using DotRecast.Core;
namespace DotRecast.Recast.Demo;
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);
}
var demo = new RecastDemo();
demo.start();
}
}