Example #1
0
 private void TrySendPlayerToNode(MapNodeVisual SelectedNode)
 {
     if (MapUtils.AreNeighbourNodes(CurrentNode, SelectedNode))
     {
         Player.SendPlayerToNode(SelectedNode).onComplete += OnNodeReached;
         CurrentNode = SelectedNode;
         InputSystem.Get().bWorldInputEnabled = false;
     }
     else
     {
         print("Node " + SelectedNode.name + " is not reachable");
     }
 }