架构大更
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace SLSFramework.General
|
||||
{
|
||||
[System.Serializable]
|
||||
public class UnityObjectWrapper<T> where T : class
|
||||
{
|
||||
[SerializeField] private Object value;
|
||||
|
||||
public T Value => value as T;
|
||||
|
||||
public UnityObjectWrapper(Object value)
|
||||
{
|
||||
this.value = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user