diff options
Diffstat (limited to 'Assets/Test/06_Layout/UI06Test.cs')
-rw-r--r-- | Assets/Test/06_Layout/UI06Test.cs | 38 |
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()
|