1
This commit is contained in:
@@ -12,6 +12,7 @@ using System.Net;
|
||||
using System.Net.Sockets;
|
||||
using System.Reflection;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Markup;
|
||||
using BITKit.Net.Examples;
|
||||
|
||||
namespace BITKit.Net
|
||||
@@ -324,7 +325,14 @@ namespace BITKit.Net
|
||||
{
|
||||
dynamic result = methodInfo.Invoke(handle, pars)!;
|
||||
|
||||
value = await result;
|
||||
if (methodInfo.ReturnType == typeof(void) || methodInfo.ReturnType == typeof(UniTask))
|
||||
{
|
||||
value = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = await result;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -332,7 +340,10 @@ namespace BITKit.Net
|
||||
}
|
||||
|
||||
returnWriter.Write(true);
|
||||
BITBinary.Write(returnWriter, value);
|
||||
if (value is not null)
|
||||
{
|
||||
BITBinary.Write(returnWriter, value);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
22
Src/Core/UX/IUXInputBox.cs
Normal file
22
Src/Core/UX/IUXInputBox.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace BITKit.UX
|
||||
{
|
||||
/// <summary>
|
||||
/// 弹窗输入框
|
||||
/// </summary>
|
||||
public interface IUXInputBox
|
||||
{
|
||||
/// <summary>
|
||||
/// 显示指定容器
|
||||
/// </summary>
|
||||
/// <param name="container"></param>
|
||||
void Show(object container);
|
||||
/// <summary>
|
||||
/// 关闭
|
||||
/// </summary>
|
||||
void Close();
|
||||
}
|
||||
}
|
11
Src/Core/UX/IUXInputBox.cs.meta
Normal file
11
Src/Core/UX/IUXInputBox.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f59706d5664d4a340beb643b5b8de3f1
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Reference in New Issue
Block a user