RecastFileReader.cs 461 B

12345678910111213141516171819
  1. using System;
  2. using System.IO;
  3. namespace ET
  4. {
  5. [Invoke]
  6. public class RecastFileReader: AInvokeHandler<NavmeshComponent.RecastFileLoader, byte[]>
  7. {
  8. public override byte[] Handle(NavmeshComponent.RecastFileLoader args)
  9. {
  10. if (Define.IsEditor)
  11. {
  12. return File.ReadAllBytes(Path.Combine("../Config/Recast", args.Name));
  13. }
  14. throw new Exception("not load");
  15. }
  16. }
  17. }