From f89d7debe557dfe77ca86ddd41079009cafef971 Mon Sep 17 00:00:00 2001 From: Textus Date: Thu, 13 Aug 2020 18:10:59 +0300 Subject: [PATCH] Added not supported types example. Classes that has no empty parameters are not supported and not shown(activator can not create instances of them). --- .../NotSupportedTypes/ExampleOfNotSupportedTypes.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/Textus/SerializeReferenceUIExample/ExampleOfUsageFromDifferentAssembly/NotSupportedTypes/ExampleOfNotSupportedTypes.cs b/Assets/Textus/SerializeReferenceUIExample/ExampleOfUsageFromDifferentAssembly/NotSupportedTypes/ExampleOfNotSupportedTypes.cs index 80eb1f5..4af4122 100644 --- a/Assets/Textus/SerializeReferenceUIExample/ExampleOfUsageFromDifferentAssembly/NotSupportedTypes/ExampleOfNotSupportedTypes.cs +++ b/Assets/Textus/SerializeReferenceUIExample/ExampleOfUsageFromDifferentAssembly/NotSupportedTypes/ExampleOfNotSupportedTypes.cs @@ -9,19 +9,19 @@ public class ExampleOfNotSupportedTypes [Serializable] public class AnimalMonoBehaviour : MonoBehaviour, IAnimal { - public void Feed() => throw new NotImplementedException(); + public void Feed() => Debug.Log("thanks"); } [Serializable] public class AnimalScriptableObject : ScriptableObject, IAnimal { - public void Feed() => throw new NotImplementedException(); + public void Feed() => Debug.Log("thanks"); } [Serializable] public class AnimalPrivateConstructor : IAnimal { private AnimalPrivateConstructor(){} - public void Feed() => throw new NotImplementedException(); + public void Feed() => Debug.Log("thanks"); }