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:11:30 +03:00
parent f89d7debe5
commit 2e08459265

View File

@ -1,8 +1,9 @@
using System; using System;
using UnityEngine;
[Serializable] [Serializable]
public struct AnimalStruct : IAnimal public struct AnimalStruct : IAnimal
{ {
public string name; public string name;
public void Feed() => throw new NotImplementedException(); public void Feed() => Debug.Log("thanks");
} }