Exemple #1
0
    public NetworkPathForBuy GetNetworkPathForBuy(StreetPaths streetPaths, int[] builds)
    {
        Vector3 start = new Vector3((float)streetPaths.StartX, 0, (float)streetPaths.StartY);
        Vector3 end   = new Vector3((float)streetPaths.EndX, 0, (float)streetPaths.EndY);

        return(new NetworkPathForBuy(IdPathForBuy, streetPaths.NamePath, streetPaths.IdStreetParent, streetPaths.Renta, start, end, IdPlayer, builds,
                                     PriceStreetPath, streetPaths.IsBridge, streetPaths.NameOfPrefab, isBlocked));
    }
Exemple #2
0
 public bool UpdateObject(StreetPaths path)
 {
     return(_connection.Update(path) == 1);
 }