AssetGame_Base.cs 309 B

123456789101112131415161718192021
  1. using UnityEngine;
  2. using System.Collections;
  3. public class AssetGame_Base<T>where T : new()
  4. {
  5. public static T Ins
  6. {
  7. get
  8. {
  9. if (m_Instance == null)
  10. m_Instance = new T();
  11. return m_Instance;
  12. }
  13. }
  14. private static T m_Instance;
  15. }