抽象uiactive接口

This commit is contained in:
2026-07-27 11:08:26 +08:00
parent 8b7fba0a88
commit 61b166f158
5 changed files with 52 additions and 17 deletions
+8
View File
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 2de2d1d1185283640a226edd18b116cf
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
+21
View File
@@ -0,0 +1,21 @@
namespace XericUI.Form
{
public interface IActivity
{
public void Show();
public void Hide();
}
public static class ActivedExtend
{
public static bool Show(this IActivity target, bool isShow)
{
if (target == null) return isShow;
if (isShow)
target.Show();
else
target.Hide();
return isShow;
}
}
}
+11
View File
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: d731fec7098a95c4f85907e275e211a6
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: