From d345feed67b425495dc3b757785a346797da7267 Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 28 Apr 2021 17:21:06 +0800 Subject: *Image\RawImage --- Assets/Test/06_Layout/UI06Test.cs | 38 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) (limited to 'Assets/Test/06_Layout/UI06Test.cs') 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 bb; bb = null; + ITest dual = new Dual(); + dual.Test(); } void Foo() -- cgit v1.1-26-g67d0