![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
unity
qmAlin
这个作者很懒,什么都没留下…
展开
-
单例模式
1.单例类的实现 1.单例的作用 1、单例类只能有一个实例。 2、单例类必须自己创建自己的唯一实例。 3、单例类必须给所有其他对象提供这一实例。 2.单例的一般写法 public class Mgr { private static Mgr inst; public static Mgr GetInst { get { ...原创 2020-03-25 14:37:49 · 100 阅读 · 0 评论 -
Unity3D 1D动画行为混合树 第三人称人物控制器
相机控制(Cameramanager) using UnityEngine; namespace dgl { public class CameraManager : MonoBehaviour { public bool lockon = false; public float followSpeed = 9; public floa...原创 2019-07-28 21:05:37 · 817 阅读 · 0 评论 -
行为树 1节点实现
节点基类 using System.Collections; using System.Collections.Generic; using UnityEngine; /// <summary> /// 节点基类 /// </summary> [System.Serializable] public abstract class Node { public deleg...原创 2019-09-04 18:13:55 · 376 阅读 · 0 评论