From 06dc46ce1e9bda33686ad6ebb6e10a9d1168d83b Mon Sep 17 00:00:00 2001
From: shurongsen <1799096798@qq.com>
Date: Wed, 4 Dec 2024 02:27:59 +0800
Subject: [PATCH] add
---
README.md.meta | 7 +++++++
base/base.cs | 19 ++++++++++++++++---
2 files changed, 23 insertions(+), 3 deletions(-)
create mode 100644 README.md.meta
diff --git a/README.md.meta b/README.md.meta
new file mode 100644
index 0000000..69f6c15
--- /dev/null
+++ b/README.md.meta
@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: 1a5354fa39508264fa2a035a542d0dcd
+TextScriptImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/base/base.cs b/base/base.cs
index 5c713d9..0439da4 100644
--- a/base/base.cs
+++ b/base/base.cs
@@ -15,7 +15,7 @@ public class Base : MonoBehaviour
public GameObject ClosureObj;
public static GameObject GlobalObj;
///
- //初始化
+ ///初始化
///
private void Awake()
{
@@ -78,7 +78,11 @@ public class Base : MonoBehaviour
}); // 第二个动画
await tcs.Task;
}
-
+ ///
+ /// 添加通用上移弹窗
+ ///
+ ///
+ ///
public void addEventPopUp(string Details,float time = 5f)//添加弹窗
{
GameObject prefab = Resources.Load("base/EventPopUp");
@@ -114,7 +118,11 @@ public class Base : MonoBehaviour
// addEventPopUp(response.message);
// testhead = new Dictionary();
//}
-
+ ///
+ /// 判读是否为小数,并且必须大于零
+ ///
+ /// 判断的字符串
+ ///
public bool IsGreaterThanZeroDecimal(string text)//判断必须为小数而且大于0
{
// 使用正则表达式匹配大于0的小数
@@ -123,6 +131,11 @@ public class Base : MonoBehaviour
return regex.IsMatch(text);
}
+ ///
+ /// 点击后关闭界面
+ ///
+ ///
+ ///
public async void CancelOnClick(Button button,GameObject my_gameObject = null)//取消按钮
{
await ButtonClickAnimationAsync(button.gameObject);