mirror of
https://github.com/maxartz15/UnitySerializedReferenceUI.git
synced 2024-11-23 16:15:34 +01:00
eeaadfc569
Core now formed and contains all useful utility to create custom ui with restrictions. Many methods was extracted from different classes and moved to core. Undo is now supported(because unity's undo bug seems to be fixed). Example now moved into same level separate folder.
43 lines
769 B
C#
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 {}
|
|
|
|
|