18 lines
318 B
C#
18 lines
318 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
|
|
namespace Wing.Utils
|
|
{
|
|
public class NormalSingleton<T> where T : new()
|
|
{
|
|
protected static T s_pInstance = new T();
|
|
public static T Instance
|
|
{
|
|
get
|
|
{
|
|
return s_pInstance;
|
|
}
|
|
}
|
|
}
|
|
}
|