-
Notifications
You must be signed in to change notification settings - Fork 330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
List<T> add错误 #20
Comments
class a继承了JBehaviour,请使用JBehaviour.Get方法获取 |
不要用获取monobehaviour的方法去获取JBehaviour,能获取但不能强转到别的类,因为mono适配器的问题,所以需要JBehaviour提供的方法去get,就可以进行类型转换了 |
代码可以使用```来显示, 代码在这里 |
三个“`”开头,然后c#,换行,写代码,最后三个结尾 |
问题已定位,等修复,今晚。 |
bug 已修复,3分支都解决了,参考使用ConverDemo即可 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
使用 class A : JBehavior, IMyInterface ,B : MyClass,IMyInterface 时候
`List<\IMyInterface > list = new List<\IMyInterface >();
list.Add(a);//error
list.Add(b);
IL_0053: callvirt System.Void System.Collections.Generic.List
1<>::Add(!0)
应该是用了适配器引起的继承关系问题.
The text was updated successfully, but these errors were encountered: