public bool TryGetNodeForNodePosition(Vector3Int networkPosition, out Node node) { int hash = Node.GetHashForNetworkPosition(networkPosition); if (_networkNodes.ContainsKey(hash)) { node = _networkNodes[hash]; return(true); } UnityEngine.Debug.LogWarning("Did not find " + networkPosition); node = null; return(false); }