Unity A*尋路演算法(人物移動AI)
阿新 • • 發佈:2019-01-25
最近閒來無事,從網上看了一些大神的心得,再融合自己的體會,寫了一個簡單點的尋路演算法,廢話不多說,直接上程式碼
<Grid> usingUnityEngine; usingSystem.Collections; usingSystem.Collections.Generic; usingSystem; ///<summary> ///格子型別 ///</summary> publicenumGridType { //正常型別 Normal, //障礙物型別 Obstacle, //起點型別