void Update() { TestSwig swig = new TestSwig(); FooObject obj = new FooObject(); obj.a = 1; //测试普通对象使用 int i = swig.UseFool(obj); number = TestSwig.Add(number, i); countNumberText.text = number.ToString(); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TestSwig obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }
void Update() { number = TestSwig.Add(number, 1); countNumberText.text = number.ToString(); }