UnitySerializedReferenceUI/Assets/TextusGames/Enhancements/SerializeReferenceUI/Example/ExampleAnimalWorldAssembly/Animals/AnimalBase.cs
TextusGames 0581978db8 FIrst Real Commit
Code refactor and migration to github.
2020-05-16 16:17:04 +03:00

43 lines
769 B
C#

using System;
using UnityEngine;
[Serializable]
public class AnimalBase : IAnimal
{
[SerializeField] protected float age;
public GameObject food;
public virtual void Feed()
{
Debug.Log("Thanks");
}
}
[Serializable]
public class AnimalChild : AnimalBase {}
[Serializable]
public abstract class AnimalGrandChildAbstract : AnimalBase
{
public string someString;
}
[Serializable]
public class AbstractAnimalGrandChild : AnimalGrandChildAbstract {}
[Serializable]
public abstract class AbstractAnimal : IAnimal
{
[SerializeField] protected float age;
public GameObject food;
public virtual void Feed()
{
Debug.Log("Thanks");
}
}
[Serializable]
public class AbstractAnimalChild : AbstractAnimal {}