UnitySerializedReferenceUI/Samples~/ExampleOfUsageFromDifferentAssembly/Animals/AnimalStruct.cs
2021-05-26 14:44:53 -04:00

10 lines
164 B
C#

using System;
using UnityEngine;
[Serializable]
public struct AnimalStruct : IAnimal
{
public string name;
public void Feed() => Debug.Log("thanks");
}