static void Main(string[] args) { Player player1 = new Player { Id = 1, FirstName = "Afet", LastName = "Agayeva", DateTime = new DateTime(2003, 1, 6) }; Game game1 = new Game { Id = 1, GameName = "Pubg", Price = 100 }; Campaign campaign1 = new Campaign { Id = 1, CampaignName = "Discount campaign", Percent = 10 }; SellingManager sellingManager = new SellingManager(); sellingManager.Buy(player1, game1, campaign1); PlayerManager playerManager = new PlayerManager(); playerManager.Add(player1); AuthManager authManager = new AuthManager(new CheckManager()); authManager.Register(); }
void Awake() { StopWait = false; EmotionCount = 0; animator = GetComponent <Animator>(); FurnitureEffect = GameObject.Find("FurnitureManager").GetComponent <FurnitureManager>(); AddInFlu = GameObject.Find("InfluenceManager").GetComponent <InfluenceManager>(); Orderd = GameObject.Find("SellingManager").GetComponent <SellingManager>(); customerManager = GameObject.Find("CustomerManager").GetComponent <CustomerManager>(); State = GameObject.Find("StatusManager").GetComponent <StatusManager>(); }
void Awake() { PlayerPos = 1; isReady = GameObject.Find("SellingManager").GetComponent <SellingManager>(); animator = GetComponent <Animator>(); UISet = GameObject.Find("UI Set 1").transform; rigid = GetComponent <Rigidbody2D>(); CamnextPos = Vector3.zero; CamnextPos.z = -10; UInextPos = Vector3.zero; UInextPos.z = -10; }
static void Main(string[] args) { Player player1 = new Player(); player1.Id = 1; player1.NationalityId = "********"; player1.FirstName = "Alierk"; player1.LastName = "Küçük"; player1.BirthDate = new DateTime(1986, 03, 05); player1.PlayerName = "meSSiaS"; player1.Money = 150; Item item1 = new Item(); item1.ItemName = "Armor"; item1.ItemPrice = 100; SellingManager sellingManager = new SellingManager(); PlayerManager playerManager = new PlayerManager(new MernisServiceAdapter()); playerManager.Save(player1); //playerManager.Update("MESSIAS", player1); //playerManager.Delete(player1); sellingManager.Buy(item1, player1); sellingManager.Sell(item1, player1); BaseDiscountManager discountManager = new DiscountManager(); discountManager.MakeDiscount(0.50, item1); BaseDiscountManager discountManager1 = new BirthDayDiscountManager(player1, new DiscountAdapter()); discountManager1.MakeDiscount(0.75, item1); sellingManager.Buy(item1, player1); ItemDiscount itemDiscount = new ItemDiscount(); itemDiscount.DiscountName = "Yeni Yıl"; itemDiscount.DiscountRate = 0.75; itemDiscount.item = item1; BaseDiscountManager itemDiscountManager = new ItemDiscountManager(); itemDiscountManager.MakeDiscount(itemDiscount.DiscountRate, itemDiscount.item); }
void Start() { Instance = this; amountText.renderer.sortingLayerName = "UI"; amountText.renderer.sortingOrder = 2; }
void Start() { Instance = this; amountText.renderer.sortingLayerName = "UI"; amountText.renderer.sortingOrder = 2; }
static void Main(string[] args) { Customer customer1 = new Customer(); customer1.CustomerId = 1; customer1.FirstName = "Alper Baha"; customer1.SurName = "GÜRSES"; customer1.TcNo = "5645653"; customer1.BirthDate = 1994; Customer customer2 = new Customer(); customer2.CustomerId = 2; customer2.FirstName = "Burak"; customer2.SurName = "TEKİN"; customer2.TcNo = "564684553"; customer2.BirthDate = 2000; Customer customer3 = new Customer(); customer3.CustomerId = 2; customer3.FirstName = "Mehmet"; customer3.SurName = "YILDIRIM"; customer3.TcNo = "3588548654"; customer3.BirthDate = 1990; Games games1 = new Games(); games1.GameId = 1; games1.GameName = "GTA 5"; games1.GamePrice = 100; Games games2 = new Games(); games2.GameId = 2; games2.GameName = "RUST"; games2.GamePrice = 89.90; Games games3 = new Games(); games3.GameId = 3; games3.GameName = "Cyberpunk 2077"; games3.GamePrice = 246.5; CustomerManager customerManager = new CustomerManager(); customerManager.Add(customer1); customerManager.Delete(customer1); customerManager.Update(customer1); GameManager gameManager = new GameManager(); gameManager.Add(games1); gameManager.Update(games1); gameManager.Delete(games1); WinterSale winterSale = new WinterSale(); winterSale.Discount(games1); winterSale.Discount(games2); winterSale.Discount(games3); SellingManager sellingManager = new SellingManager(); sellingManager.Sell(games1, customer1); }