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()); } }
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); } }
public void ChooseSelectedItem(int Itemselected) { selectedItem = Itemselected; Debug.Log(selectedItem); PriceUpdater.ChangeItemSelected(Price[Itemselected]); }