03 2017 档案

一些常用的小插件(不断更新)
摘要:UI Manager:简单利用栈去管理UI的页面,参考自Siki老师的http://www.sikiedu.com/course/34/lesson/list,在这个插件里我改进了一下自动创建Json的过程,不用自己手写。 地址为:https://git.oschina.net/TMoon-Net/ 阅读全文

posted @ 2017-03-29 14:14 爱裸奔的小亮亮 阅读(257) 评论(0) 推荐(0)

Unity C# 操控行为类
摘要:备注:因为这篇博客是根据《游戏人工智能编程案例精粹》写的,而这本书是由c++写的。所以在这篇文章里只是有ai的逻辑,但并没有很好地用在Unity身上。后来我发现了一本书,也是根据《游戏人工智能编程案例精粹》这本书写的,而且专门是为了Unity写的。因此下面的代码理解一下就好,实际应用的话可以参考那本 阅读全文

posted @ 2017-03-26 22:20 爱裸奔的小亮亮 阅读(378) 评论(0) 推荐(0)

Unity 小地图点击位置映射到地图实体位置(类似王者荣耀的小地图点击发射信号功能)
摘要:小地图自制功能就不多说了,我的小地图制作参考地址:https://www.youtube.com/watch?v=EeyZ2y2Jpz4 建议直接到地址中去看UGUI的小地图的制作,觉得还是讲得比较好的。 下面在参考地址的制作前提下做一个小地图点击位置映射到地图实体位置中去的功能。 准备工作: 搭建 阅读全文

posted @ 2017-03-22 20:24 爱裸奔的小亮亮 阅读(4878) 评论(4) 推荐(2)

Unity FSM状态机
摘要:状态类: 1 using System; 2 using System.Collections; 3 using System.Collections.Generic; 4 using UnityEngine; 5 6 public class State 7 { 8 /// <summary> 9 阅读全文

posted @ 2017-03-20 13:43 爱裸奔的小亮亮 阅读(768) 评论(0) 推荐(0)

Unity 摄像机旋转跟随缩放控制
摘要:1 using System.Collections; 2 using System.Collections.Generic; 3 using UnityEngine; 4 5 public class CameraController : MonoBehaviour 6 { 7 8 [SerializeField] 9 private float dis... 阅读全文

posted @ 2017-03-17 21:40 爱裸奔的小亮亮 阅读(635) 评论(0) 推荐(1)

Unity 协程深入解析与原理
摘要:先来直接放一段代码 1 using System.Collections; 2 using System.Collections.Generic; 3 using UnityEngine; 4 5 public class CoroutineTest : MonoBehaviour 6 { 7 8 阅读全文

posted @ 2017-03-16 19:02 爱裸奔的小亮亮 阅读(531) 评论(0) 推荐(0)

Unity C# 对象池
摘要:1 using System.Collections.Generic; 2 using UnityEngine; 3 4 namespace TMoonObjectPool 5 { 6 /// <summary> 7 /// 对象池 8 /// </summary> 9 public class G 阅读全文

posted @ 2017-03-14 21:46 爱裸奔的小亮亮 阅读(411) 评论(0) 推荐(0)

Event System Dispatcher学习笔记
摘要:备注:MessageDispatcher图关联Message图 Dispatcher does this and makes it easy too! Simply tell the Dispatcher what an object wants to listen for. When anothe 阅读全文

posted @ 2017-03-12 13:44 爱裸奔的小亮亮 阅读(350) 评论(0) 推荐(0)

导航