新增Enum支持

This commit is contained in:
2025-11-25 17:03:43 +08:00
parent 5b235a7f26
commit 2f24d94db2
3 changed files with 90 additions and 37 deletions

View File

@@ -6,6 +6,7 @@ using System.Collections;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using UnityEngine;
using static Convention.RScript.RScriptContext;
namespace Convention.RScript
@@ -276,10 +277,12 @@ namespace Convention.RScript
}
catch (RScriptException)
{
Debug.LogError($"current sentence: {sentence}");
throw;
}
catch (Exception ex)
{
Debug.LogError($"current sentence: {sentence}");
throw new RScriptRuntimeException($"Runtime error: {ex.Message}", CurrentRuntimePointer, ex);
}
}