void TestScriptFunc1() { try { int nV2 = FCLibHelper.fc_get_version(); print_error("fc_get_version() is " + nV2); bool bDebugMode = FCLibHelper.fc_is_debug_mode(); print_error("fc_is_debug_mode() is " + bDebugMode); int nLisenPort = FCLibHelper.fc_get_debug_port(); print_error("开启监控的端口: " + nLisenPort); } catch (Exception e) { print_error(e.ToString()); } try { Vector3 v = new Vector3(1, 2, 3); FCDll.PushCallParam(ref v); FCLibHelper.fc_call(0, "csharp2fc_set_vector3"); Vector4 v2 = new Vector4(22, 33, 44, 55); FCDll.PushCallParam(ref v2); FCLibHelper.fc_call(0, "csharp2fc_set_vector4"); string szTest = "测试字符串传参"; FCDll.PushCallParam(szTest); FCLibHelper.fc_call(0, "csharp2fc_set_string"); } catch (Exception e) { print_error(e.ToString()); } }