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]
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");
}