summaryrefslogtreecommitdiff
path: root/Assets/Test/06_Layout/UI06Test.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-04-28 17:21:06 +0800
committerchai <chaifix@163.com>2021-04-28 17:21:06 +0800
commitd345feed67b425495dc3b757785a346797da7267 (patch)
treee9c8d4cd61ed840995a250098e94ec67a0dcab39 /Assets/Test/06_Layout/UI06Test.cs
parentc3979444c23fb831ebd2be4ec8829b691ee71474 (diff)
*Image\RawImage
Diffstat (limited to 'Assets/Test/06_Layout/UI06Test.cs')
-rw-r--r--Assets/Test/06_Layout/UI06Test.cs38
1 files changed, 36 insertions, 2 deletions
diff --git a/Assets/Test/06_Layout/UI06Test.cs b/Assets/Test/06_Layout/UI06Test.cs
index 70ec744..da4d269 100644
--- a/Assets/Test/06_Layout/UI06Test.cs
+++ b/Assets/Test/06_Layout/UI06Test.cs
@@ -4,11 +4,44 @@ using System.Collections.Generic;
using UnityEngine;
using System.Linq;
-interface IS
+
+interface ITest
+{
+ void Test();
+}
+interface ITest2
+{
+ void Test();
+}
+
+class Dual : ITest //, ITest2
+{
+
+ void ITest.Test()
+ {
+ Debug.Log("test");
+ }
+
+ //void ITest.Test()
+ //{
+ // Debug.Log("ITest.Test");
+ //}
+
+ //void ITest2.Test()
+ //{
+ // Debug.Log("ITest2.Test");
+ //}
+}
+
+public interface IS
{
void Foo();
}
+public interface IS2
+{
+ void Foo();
+}
struct StructA : IS
{
public static int value2 = 29;
@@ -25,7 +58,6 @@ struct StructA : IS
{
throw new NotImplementedException();
}
-
}
@@ -79,6 +111,8 @@ public class UI06Test : MonoBehaviour {
//StructA? bb;
Nullable<StructA> bb;
bb = null;
+ ITest dual = new Dual();
+ dual.Test();
}
void Foo()