Unity 2020.3.4f1
When I run Assets/Samples/Loxodon Framework XLua/2.0.0/Examples/Async & Await Tutorials.unity
I get this error.
Why is it happening and how should I fix it?
InvalidCastException: This type must add to CSharpCallLua: Loxodon.Framework.Asynchronous.ILuaTask
XLua.DelegateBridge.Func[T1,TResult] (T1 p1) (at Assets/XLua/Src/GenericDelegateBridge.cs:157)
Loxodon.Framework.Views.LuaBehaviour+d15.MoveNext () (at Assets/LoxodonFramework/XLua/Runtime/Framework/Views/LuaBehaviour.cs:116)
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.b6_0 (System.Object state) (at <695d1cc93cca45069c528c15c9fdd749>:0)
UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () (at /Users/bokken/buildslave/unity/build/Runtime/Export/Scripting/UnitySynchronizationContext.cs:153)
UnityEngine.UnitySynchronizationContext:ExecuteTasks() (at /Users/bokken/buildslave/unity/build/Runtime/Export/Scripting/UnitySynchronizationContext.cs:107)
Unity 2020.3.4f1 When I run Assets/Samples/Loxodon Framework XLua/2.0.0/Examples/Async & Await Tutorials.unity I get this error. Why is it happening and how should I fix it?
InvalidCastException: This type must add to CSharpCallLua: Loxodon.Framework.Asynchronous.ILuaTask XLua.DelegateBridge.Func[T1,TResult] (T1 p1) (at Assets/XLua/Src/GenericDelegateBridge.cs:157) Loxodon.Framework.Views.LuaBehaviour+d15.MoveNext () (at Assets/LoxodonFramework/XLua/Runtime/Framework/Views/LuaBehaviour.cs:116)
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.b 6_0 (System.Object state) (at <695d1cc93cca45069c528c15c9fdd749>:0)
UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () (at /Users/bokken/buildslave/unity/build/Runtime/Export/Scripting/UnitySynchronizationContext.cs:153)
UnityEngine.UnitySynchronizationContext:ExecuteTasks() (at /Users/bokken/buildslave/unity/build/Runtime/Export/Scripting/UnitySynchronizationContext.cs:107)