Exemplo n.º 1
0
 static void Main(string[] args)
 {
     try
     {
         string cnx = System.Configuration.ConfigurationManager.AppSettings["ConnectionString"];
         var    p   = new PriceUpdater(cnx);
         p.UpdateContracts(DateTime.UtcNow.AddDays(-1), new string[] { });
     }
     catch (Exception ex)
     {
         System.Console.WriteLine("error main: " + ex.Message + "-" + ex.ToString());
     }
 }
Exemplo n.º 2
0
    public void BuyShip()
    {
        int coins = StatusOfGame.GetCoins();

        Debug.Log(selectedItem);

        if (coins >= Price[selectedItem] & Items[selectedItem] == false)
        {
            StatusOfGame.MinusCoins(Price[selectedItem]);
            Items[selectedItem] = true;
            InventoryScript.BoughtItem(selectedItem);
            Price[selectedItem] = -1;
            PriceUpdater.ChangeItemSelected(Price[selectedItem]);
            Debug.Log("Bought Item: " + selectedItem);
        }
    }
Exemplo n.º 3
0
 public void ChooseSelectedItem(int Itemselected)
 {
     selectedItem = Itemselected;
     Debug.Log(selectedItem);
     PriceUpdater.ChangeItemSelected(Price[Itemselected]);
 }