摘要:UI Manager:简单利用栈去管理UI的页面,参考自Siki老师的http://www.sikiedu.com/course/34/lesson/list,在这个插件里我改进了一下自动创建Json的过程,不用自己手写。 地址为:https://git.oschina.net/TMoon-Net/
阅读全文
摘要:备注:因为这篇博客是根据《游戏人工智能编程案例精粹》写的,而这本书是由c++写的。所以在这篇文章里只是有ai的逻辑,但并没有很好地用在Unity身上。后来我发现了一本书,也是根据《游戏人工智能编程案例精粹》这本书写的,而且专门是为了Unity写的。因此下面的代码理解一下就好,实际应用的话可以参考那本
阅读全文
摘要:小地图自制功能就不多说了,我的小地图制作参考地址:https://www.youtube.com/watch?v=EeyZ2y2Jpz4 建议直接到地址中去看UGUI的小地图的制作,觉得还是讲得比较好的。 下面在参考地址的制作前提下做一个小地图点击位置映射到地图实体位置中去的功能。 准备工作: 搭建
阅读全文
摘要:状态类: 1 using System; 2 using System.Collections; 3 using System.Collections.Generic; 4 using UnityEngine; 5 6 public class State 7 { 8 /// <summary> 9
阅读全文
摘要: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...
阅读全文
摘要:先来直接放一段代码 1 using System.Collections; 2 using System.Collections.Generic; 3 using UnityEngine; 4 5 public class CoroutineTest : MonoBehaviour 6 { 7 8
阅读全文
摘要:1 using System.Collections.Generic; 2 using UnityEngine; 3 4 namespace TMoonObjectPool 5 { 6 /// <summary> 7 /// 对象池 8 /// </summary> 9 public class G
阅读全文
摘要:备注:MessageDispatcher图关联Message图 Dispatcher does this and makes it easy too! Simply tell the Dispatcher what an object wants to listen for. When anothe
阅读全文