Added not supported types example.

Classes that has no empty parameters are not supported and not shown(activator can not create instances of them).
This commit is contained in:
Textus 2020-08-13 18:10:59 +03:00
parent 1e8f80077f
commit f89d7debe5

View File

@ -9,19 +9,19 @@ public class ExampleOfNotSupportedTypes
[Serializable] [Serializable]
public class AnimalMonoBehaviour : MonoBehaviour, IAnimal public class AnimalMonoBehaviour : MonoBehaviour, IAnimal
{ {
public void Feed() => throw new NotImplementedException(); public void Feed() => Debug.Log("thanks");
} }
[Serializable] [Serializable]
public class AnimalScriptableObject : ScriptableObject, IAnimal public class AnimalScriptableObject : ScriptableObject, IAnimal
{ {
public void Feed() => throw new NotImplementedException(); public void Feed() => Debug.Log("thanks");
} }
[Serializable] [Serializable]
public class AnimalPrivateConstructor : IAnimal public class AnimalPrivateConstructor : IAnimal
{ {
private AnimalPrivateConstructor(){} private AnimalPrivateConstructor(){}
public void Feed() => throw new NotImplementedException(); public void Feed() => Debug.Log("thanks");
} }