static void ChangeToDefUpgrShop() { currentScreen = CurrentShopScreen.DefUpgrScreen; }
static void ChangeToCarShop() { currentScreen = CurrentShopScreen.CarShopScreen; }
static void ChangeToAttUpgrShop() { currentScreen = CurrentShopScreen.AttUpgrScreen; }
static void ChangeToArenaShop() { currentScreen = CurrentShopScreen.ArenaShopScreen; }
public static void Open(int shopUser) { ShopScreen.shopUser = shopUser; currentScreen = CurrentShopScreen.MainShopScreen; buttons.Speed = 0; }
public static void Initialize() { background.Initialize(Vector2.Zero); currentScreen = CurrentShopScreen.MainShopScreen; moneyDisplay.Initialize(new Vector2(50, 600)); ArenaShop.Initialize(); CarShop.Initialize(); DefensiveUpgradeShop.Initialize(); OffensiveUpgradeShop.Initialize(); //Set up all the buttons string[] texts = new string[4]; texts[0] = "Cars"; texts[1] = "Shields"; texts[2] = "Weapons"; texts[3] = "Arenas"; buttons.Initialize(texts, 800); //Set up the car & example example.Initialize((int)ShopScreen.ShopUser); example.MakeAI(); example.DriveExampleCircles(); example.Position = new Vector2(1000, 300); example.Rotation = (float)Math.PI; exampleRoad.Initialize(new Vector2(790, 140)); //Initialize the popups notEnoughMoneyNotice.Initialize(Popups.Type.Ok); areYouSurePopup.Initialize(Popups.Type.NoOk); }