- 博客(2)
- 收藏
- 关注
原创 Unity鼠标控制物体拖拽旋转
using System.Collections;using System.Collections.Generic;using UnityEngine;public enum ShowType{ None, Move, Rotate}public class Mousemove : Singleton<Mousemove>{ public Transform Obj;//被操作的物体Obj public float sensitivity ...
2021-11-16 13:14:32 1231
原创 Unity泛型单例
using System.Collections;using System.Collections.Generic;using UnityEngine;public class Singleton<T> : MonoBehaviour where T : Component{ private static readonly object syslock = new object(); //我叫他线程锁 private static T _instance; p...
2021-11-16 13:10:45 2767
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人