13 lines
233 B
C#
13 lines
233 B
C#
using UnityEngine;
|
|
|
|
namespace UltimateWater
|
|
{
|
|
public class ScriptableObjectSingleton : ScriptableObject
|
|
{
|
|
protected static T LoadSingleton<T>() where T : ScriptableObject
|
|
{
|
|
return Resources.Load<T>(typeof(T).Name);
|
|
}
|
|
}
|
|
}
|