123456789101112131415161718192021 |
- using UnityEngine;
- using System.Collections;
- public class AssetGame_Base<T>where T : new()
- {
- public static T Ins
- {
- get
- {
- if (m_Instance == null)
- m_Instance = new T();
- return m_Instance;
- }
- }
- private static T m_Instance;
- }
|