Unity Singleton 单例类(Unity3D开发)

一、添加单例模板类 1 using UnityEngine; 2 3 public class Singleton<T> : MonoBehaviour where T : MonoBehaviour 4 { 5 private static T _instance; 6 7 private sta
posted @ 2017-12-27 19:54  lovewaits  阅读(3594)  评论(0编辑  收藏  举报