add
This commit is contained in:
parent
4ce38f4a0b
commit
06dc46ce1e
7
README.md.meta
Normal file
7
README.md.meta
Normal file
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1a5354fa39508264fa2a035a542d0dcd
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
19
base/base.cs
19
base/base.cs
@ -15,7 +15,7 @@ public class Base : MonoBehaviour
|
||||
public GameObject ClosureObj;
|
||||
public static GameObject GlobalObj;
|
||||
/// <summary>
|
||||
//ウ<>シサッ
|
||||
///初始化
|
||||
/// </summary>
|
||||
private void Awake()
|
||||
{
|
||||
@ -78,7 +78,11 @@ public class Base : MonoBehaviour
|
||||
}); // 第二个动画
|
||||
await tcs.Task;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加通用上移弹窗
|
||||
/// </summary>
|
||||
/// <param name="Details"></param>
|
||||
/// <param name="time"></param>
|
||||
public void addEventPopUp(string Details,float time = 5f)//添加弹窗
|
||||
{
|
||||
GameObject prefab = Resources.Load<GameObject>("base/EventPopUp");
|
||||
@ -114,7 +118,11 @@ public class Base : MonoBehaviour
|
||||
// addEventPopUp(response.message);
|
||||
// testhead = new Dictionary<string, string>();
|
||||
//}
|
||||
|
||||
/// <summary>
|
||||
/// 判读是否为小数,并且必须大于零
|
||||
/// </summary>
|
||||
/// <param name="text">判断的字符串</param>
|
||||
/// <returns></returns>
|
||||
public bool IsGreaterThanZeroDecimal(string text)//判断必须为小数而且大于0
|
||||
{
|
||||
// 使用正则表达式匹配大于0的小数
|
||||
@ -123,6 +131,11 @@ public class Base : MonoBehaviour
|
||||
|
||||
return regex.IsMatch(text);
|
||||
}
|
||||
/// <summary>
|
||||
/// 点击后关闭界面
|
||||
/// </summary>
|
||||
/// <param name="button"></param>
|
||||
/// <param name="my_gameObject"></param>
|
||||
public async void CancelOnClick(Button button,GameObject my_gameObject = null)//取消按钮
|
||||
{
|
||||
await ButtonClickAnimationAsync(button.gameObject);
|
||||
|
Loading…
Reference in New Issue
Block a user