private void Update()
        {
            openList = new List();
            closeList = new List();
            finalNode = new List();
            var startNode_ = tileManager.GetNodeByPoint(transform.position);
            startNode_.color = Color.red;

            endNode = tileManager.GetNodeByPoint(_endNode.position);
            endNode.color = Color.blue;

            AddToOpenList(startNode_);

            while (openList.Count > 0)
            {
                currentNode = openList[0];
                int count_ = openList.Count;
                for (int i = 1; i                 {
                    var listItem_ = openList[i];
                    listItem_.color = Color.magenta;
                    if (listItem_.f <= currentNode.f
                        && listItem_._h                     {
                        currentNode = listItem_;
                    }
                }
                RemoveFromOpenList(currentNode);
                AddToCloseList(currentNode);
                if (currentNode == endNode) // 마지막이면 지금까지 찾은 것들을 넣는다.
                {
                    GetFinalPath()
                }

                CheckNeighborNode();
            }
        }


대충 유툽에서 보고 여기 저기서 긁어 모아다 하나 만들어 봤는데


이거 - _ - 겜에서 어떻게 돌리냐;;


내 빡대갈로는 매 Update마다 List할당한거 가비지로 3세트씩 쌓이는거 아님??


좀 고오급 적으로 최적화 해 놓은 강좌 같은거 없어요?