Пример #1
0
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.Space))
     {
         path.Clear();
         path = PathFinding.DoPathFind_AStar(
             maps.GetNodeFromPosition((startTransform.position)),
             maps.GetNodeFromPosition((endTransform.position))
             , maps.Nodes
             );
     }
 }