摘要: 一、添加单例模板类 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 阅读(3603) 评论(0) 推荐(0) 编辑
摘要: 1 using UnityEngine; 2 using System.Collections; 3 using System.Collections.Generic; 4 [ExecuteInEditMode] 5 public class Parabola : MonoBehaviour { 6 阅读全文
posted @ 2017-12-27 17:20 lovewaits 阅读(1067) 评论(0) 推荐(0) 编辑