25 lines
671 B
C#
25 lines
671 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
namespace BITKit.Tests
|
|
{
|
|
public interface IGenericTest
|
|
{
|
|
|
|
}
|
|
public interface IGenericTest<T> : IGenericTest
|
|
{
|
|
|
|
}
|
|
[System.Serializable]
|
|
public class GenericTest : IGenericTest { }
|
|
[System.Serializable]
|
|
public class GenericTest<T> : IGenericTest<T> { }
|
|
[System.Serializable]
|
|
public class IntTest : GenericTest<int> { }
|
|
public class GenericSerializeReference : MonoBehaviour
|
|
{
|
|
[SerializeReference, SubclassSelector] public GenericTest genericTest;
|
|
[SerializeReference, SubclassSelector] public IntTest genericTests;
|
|
}
|
|
} |