bate's blog

調べたこと実装したことなどを取りとめもなく書きます。

2013-02-03から1日間の記事一覧

経路探索部分をクラス化

List<GameObject> list = m_PathFinding.GetPath(m_Start, m_Goal); foreach(GameObject obj in list) { GridNode node = obj.GetComponent<GridNode>(); if(node.State == GridNode.eState.OnPath) { m_InfoList[node.NodeInfo.index].renderer.material.color = Color.black; } }</gridnode></gameobject>…