private void Start() { player1 = FindObjectOfType <Player1>(); player2 = FindObjectOfType <Player2>(); player3 = FindObjectOfType <Player3>(); player4 = FindObjectOfType <Player4>(); }
void Reset() { int id = ActivePlayer.Index; Player1.ReInit(); Player2.ReInit(); Player3.ReInit(); Player4.ReInit(); SetPlayerActive(id); switch (PluginType) { case PluginType.Direct_Connection_Plugin: break; case PluginType.PlatForm_Connection_Plugin: try { PlatformSDK.LogOut(); }catch (Exception e) { Console.WriteLine(e.Message); } PlatformSDK = null; break; default: break; } isPlatLogin = false; loginType = -1; }
private void BtnResetCommander_Click(object sender, RoutedEventArgs e) { Player1.Reset(Gametypes.Commander); Player2.Reset(Gametypes.Commander); Player3.Reset(Gametypes.Commander); Player4.Reset(Gametypes.Commander); }
void ReleaseDesignerOutlets() { if (Player1 != null) { Player1.Dispose(); Player1 = null; } if (Player2 != null) { Player2.Dispose(); Player2 = null; } if (Player3 != null) { Player3.Dispose(); Player3 = null; } if (Player4 != null) { Player4.Dispose(); Player4 = null; } if (PlayerCount != null) { PlayerCount.Dispose(); PlayerCount = null; } }
//private void cmdOpen_Click(object sender, RoutedEventArgs e) //{ // CmdBar.IsOpen = true; //} private void BtnResetMP_Click(object sender, RoutedEventArgs e) { Player1.Reset(Gametypes.Current); Player2.Reset(Gametypes.Current); Player3.Reset(Gametypes.Current); Player4.Reset(Gametypes.Current); }
public MainPage() { this.InitializeComponent(); Player1.Init(_manager, _manager.Player1); Player2.Init(_manager, _manager.Player2); Player3.Init(_manager, _manager.Player3); Player4.Init(_manager, _manager.Player4); Player1.Flip(); Player2.Flip(); Player1.SetBackGround(BackGroundColors.Yellow); Player2.SetBackGround(BackGroundColors.Green); Player3.SetBackGround(BackGroundColors.Purple); Player4.SetBackGround(BackGroundColors.Blue); SettingsBar1.Init(_manager, this); SettingsBar1.ButtonClicked += btnSettings_Click; SettingsBar2.Init(_manager, this); SettingsBar2.ButtonClicked += btnSettings_Click; SettingsBar2.Visibility = SettingsBar1.Visibility = Visibility.Collapsed; }
/// <summary> /// Execute method for AddToQueueCommand /// </summary> private void ExecuteAddToQueueCommand() { ObservableCollection <Member> temp = new ObservableCollection <Member>(); //This condition indicates that a doubles games or singles game will occur if ((GetTeam1().Count == GetTeam2().Count) && GetTeam1().Count != 0) { ObservableCollection <ObservableCollection <Member> > group = new ObservableCollection <ObservableCollection <Member> >();//add both group.Add(GetTeam1()); group.Add(GetTeam2()); #region Clear the DragIn boxes in the GUI Player1.Clear(); Player2.Clear(); Player3.Clear(); Player4.Clear(); #endregion QueueList.Add(group); Xceed.Wpf.Toolkit.MessageBox.Show("Successfully added to queue!", "Success", MessageBoxButton.OK, MessageBoxImage.Asterisk); } else { Xceed.Wpf.Toolkit.MessageBox.Show("A game must consist of either 2 or 4 players.", "Incorrect Team Size Error", MessageBoxButton.OK, MessageBoxImage.Error); } }
public void Initialize() { isEndFlag = false; StageState.sceneNumber = 1; gameObjectManager.Initialize(); map = new Map(GameDevice.Instance()); map.Load("Title.csv", "./csv/"); gameObjectManager.Add(map); //最初に回っている player3 = new Player3(new Vector2(128 * 6 + 15, 128 * 5 + 15), GameDevice.Instance(), gameObjectManager); gameObjectManager.Add(player3); //最初に止まっている player4 = new Player4(new Vector2(128 * 7 + 18, 128 * 5 + 18), GameDevice.Instance(), gameObjectManager); gameObjectManager.Add(player4); player3.SetPos(player4.GetPosition()); stop3 = player3.IsStop(); stop4 = player4.IsStop(); metoronome.Initialize(); metoronome.SetBpm(60); motion.Add(0, new Rectangle(64 * 0, 64 * 0, 64, 64)); motion.Add(1, new Rectangle(64 * 1, 64 * 0, 64, 64)); motion.Add(2, new Rectangle(64 * 0, 64 * 1, 64, 64)); motion.Add(3, new Rectangle(64 * 1, 64 * 1, 64, 64)); motion.Initialize(new Range(0, 3), new CountDownTimer(0.1f)); }
// Use this for initialization void Start() { raw = GetComponent <RawImage>(); player = FindObjectOfType <Player1>(); player2 = FindObjectOfType <Player2>(); player3 = FindObjectOfType <Player3>(); player4 = FindObjectOfType <Player4>(); }
// Start is called before the first frame update void Start() { hp = 5; pa1 = FindObjectOfType <Player1>(); pa2 = FindObjectOfType <Player2>(); pa3 = FindObjectOfType <Player3>(); pa4 = FindObjectOfType <Player4>(); }
public void Form1Test() { Player1 o1 = new Player1(); Player2 o2 = new Player2(); Player3 o3 = new Player3(); Player4 o4 = new Player4(); //Assert.Fail(); }
public override XElement GenerateXElement() { // Game XElement rootEl = new XElement("Game"); // Current Player XElement currentPlayerEl = new XElement("CurrentPlayer", CurrentPlayer); rootEl.Add(currentPlayerEl); // RoundCounter XElement roundCounterEl = new XElement("RoundCounter", RoundCounter); rootEl.Add(roundCounterEl); // Phase XElement phaseEl = new XElement("Phase", Phase.ToString()); rootEl.Add(phaseEl); // Player1 XElement player1El = new XElement("Player1", Player1.GenerateXElement()); rootEl.Add(player1El); // Player2 XElement player2El = new XElement("Player2", Player2.GenerateXElement()); rootEl.Add(player2El); // Player3 XElement player3El = new XElement("Player3", Player3.GenerateXElement()); rootEl.Add(player3El); // Player4 XElement player4El = new XElement("Player4", Player4.GenerateXElement()); rootEl.Add(player4El); // CurrentTrick XElement currentTrickEl = new XElement("CurrentTrick", (from item in currentTrick select item.GenerateXElement()).ToList()); rootEl.Add(currentTrickEl); // TrickHistory XElement trickHistoryEl = new XElement("TrickHistory", (from trick in trickHistory select new XElement("Trick", from item in trick select item.GenerateXElement())).ToList()); rootEl.Add(trickHistoryEl); return(rootEl); }
private void ButtonCopyText_Click(object sender, EventArgs e) { List <string> playerLoots = new List <string>(); if (Player1.HasName) { playerLoots.Add(Player1.GetText()); } if (Player2.HasName) { playerLoots.Add(Player2.GetText()); } if (Player3.HasName) { playerLoots.Add(Player3.GetText()); } if (Player4.HasName) { playerLoots.Add(Player4.GetText()); } if (Player5.HasName) { playerLoots.Add(Player5.GetText()); } if (Player6.HasName) { playerLoots.Add(Player6.GetText()); } int totalBag = Player1.Bag + Player2.Bag + Player3.Bag + Player4.Bag + Player5.Bag + Player6.Bag; int totalYellow = Player1.Yellow + Player2.Yellow + Player3.Yellow + Player4.Yellow + Player5.Yellow + Player6.Yellow; int totalEternal = Player1.Eternal + Player2.Eternal + Player3.Eternal + Player4.Eternal + Player5.Eternal + Player6.Eternal; int totalMythic = Player1.Mythic + Player2.Mythic + Player3.Mythic + Player4.Mythic + Player5.Mythic + Player6.Mythic; string output = "Loots Bag/Yellow/Eternal"; if (CountMythic) { output += "/Mythic"; } output += ": " + string.Join(", ", playerLoots); output += string.Format(", All loots {0}/{1}/{2}", totalBag, totalYellow, totalEternal); if (CountMythic) { output += "/" + totalMythic; } while (output.Contains(" ")) { output = output.Replace(" ", " "); } Clipboard.Clear(); Clipboard.SetText(output.Trim()); }
// Use this for initialization void Start() { Ps = transform.GetComponentInChildren <ParticleSystem>(); Delay = 180; Phase = 1; Gasheight = 10; p1 = FindObjectOfType <Player1>(); p2 = FindObjectOfType <Player2>(); p3 = FindObjectOfType <Player3>(); p4 = FindObjectOfType <Player4>(); }
private void Start() { Hp = 5; Wood = 100; Stone = 50; Bullet = 50; arrive = false; p1 = FindObjectOfType <Player1>(); p2 = FindObjectOfType <Player2>(); p3 = FindObjectOfType <Player3>(); p4 = FindObjectOfType <Player4>(); }
private void ButtonClear_Click(object sender, EventArgs e) { if (MessageBoxEx.Show(this, "Clear all values?", "", MessageBoxButtons.OKCancel) == DialogResult.OK) { Player1.Clear(); Player2.Clear(); Player3.Clear(); Player4.Clear(); Player5.Clear(); Player6.Clear(); } }
// Use this for initialization void Start() { Wood = 10; Stone = 5; survive = 1; Pa = FindObjectOfType <Player1>(); Pa2 = FindObjectOfType <Player2>(); Pa3 = FindObjectOfType <Player3>(); Pa4 = FindObjectOfType <Player4>(); if (this.transform.tag == "BulletBox") { hp = 5; } }
void OnDispose(object sender, EventArgs e) { Release(); try { Player1.Dispose(); Player2.Dispose(); Player3.Dispose(); Player4.Dispose(); } catch { } base.Dispose(); }
void Awake() { if (instance == null) { instance = this; } else { Destroy(transform.gameObject); } PlayerID = 4; tech = 0; design = 0; art = 1; money = 5; }
public void OnBackPlayerButtonClick() { Player1.SetActive(false); Player2.SetActive(false); Player3.SetActive(false); Player4.SetActive(false); Player2Button.SetActive(true); Player3Button.SetActive(true); Player4Button.SetActive(true); MatchSelectButton.SetActive(false); BackPlayer.SetActive(false); BackMenu.SetActive(true); PlaySelectButton.SetActive(false); es.SetSelectedGameObject(Player2Button); }
public void OnPlayer4Click() { GameData.AIs = new bool[4]; Player2Button.SetActive(false); Player3Button.SetActive(false); Player4Button.SetActive(false); Player1.SetActive(true); Player2.SetActive(true); Player3.SetActive(true); Player4.SetActive(true); BackPlayer.SetActive(true); BackMenu.SetActive(false); MatchSelectButton.SetActive(true); PlaySelectButton.SetActive(true); es.SetSelectedGameObject(Player1); }
public void Release() { try { Player1.Release(); Player2.Release(); Player3.Release(); Player4.Release(); Player1 = new SinglePlayer(); Player2 = new SinglePlayer(); Player3 = new SinglePlayer(); Player4 = new SinglePlayer(); PlatformSDK = new P_HIKSDK(); } catch { } }
void Start() { turn = -1; socks = new Sockets(); takingTurn = false; moveCommands = 1; pawnObjects = new GameObject[4]; playerPositions = new int[4]; gui = GameObject.Find("Gui").GetComponent<Gui>(); p1 = GameObject.Find("Player1").GetComponent<Player1>(); p2 = GameObject.Find("Player2").GetComponent<Player2>(); p3 = GameObject.Find("Player3").GetComponent<Player3>(); p4 = GameObject.Find("Player4").GetComponent<Player4>(); winningMove = 0; pawnObjects[0] = GameObject.Find("Green1").GetComponent<Green1>().gameObject; pawnObjects[1] = GameObject.Find("Red1").GetComponent<Red1>().gameObject; pawnObjects[2] = GameObject.Find("Blue1").GetComponent<Blue1>().gameObject; pawnObjects[3] = GameObject.Find("Yellow1").GetComponent<Yellow1>().gameObject; }
private async void Button_Clicked() { if (CurrentSelectedIndex == 0) { if (string.IsNullOrWhiteSpace(Player1)) { await DialogService.DisplayAlertAsync("", "Please insert player 1", "OK"); return; } else if (string.IsNullOrWhiteSpace(Player2)) { await DialogService.DisplayAlertAsync("", "Please insert player 2", "OK"); return; } else if (string.IsNullOrWhiteSpace(Player3)) { await DialogService.DisplayAlertAsync("", "Please insert player 3", "OK"); return; } else if (string.IsNullOrWhiteSpace(Player4)) { await DialogService.DisplayAlertAsync("", "Please insert player 4", "OK"); return; } } else if (CurrentSelectedIndex == 1) { if (string.IsNullOrWhiteSpace(Player1)) { await DialogService.DisplayAlertAsync("", "Please insert player 1", "OK"); return; } else if (string.IsNullOrWhiteSpace(Player2)) { await DialogService.DisplayAlertAsync("", "Please insert player 2", "OK"); return; } else if (string.IsNullOrWhiteSpace(Player3)) { await DialogService.DisplayAlertAsync("", "Please insert player 3", "OK"); return; } else if (string.IsNullOrWhiteSpace(Player4)) { await DialogService.DisplayAlertAsync("", "Please insert player 4", "OK"); return; } else if (string.IsNullOrWhiteSpace(Player5)) { await DialogService.DisplayAlertAsync("", "Please insert player 5", "OK"); return; } } else { if (string.IsNullOrWhiteSpace(Player1)) { await DialogService.DisplayAlertAsync("", "Please insert player 1", "OK"); return; } else if (string.IsNullOrWhiteSpace(Player2)) { await DialogService.DisplayAlertAsync("", "Please insert player 2", "OK"); return; } else if (string.IsNullOrWhiteSpace(Player3)) { await DialogService.DisplayAlertAsync("", "Please insert player 3", "OK"); return; } else if (string.IsNullOrWhiteSpace(Player4)) { await DialogService.DisplayAlertAsync("", "Please insert player 4", "OK"); return; } else if (string.IsNullOrWhiteSpace(Player5)) { await DialogService.DisplayAlertAsync("", "Please insert player 5", "OK"); return; } else if (string.IsNullOrWhiteSpace(Player6)) { await DialogService.DisplayAlertAsync("", "Please insert player 6", "OK"); return; } } List <Player> players = new List <Player>(); if (CurrentSelectedIndex == 0) { await NavigationMethod.NavigateAsync(nameof(MainPage)); players.Add(new Player(Player1.ToString())); players.Add(new Player(Player2.ToString())); players.Add(new Player(Player3.ToString())); players.Add(new Player(Player4.ToString())); EventAggregator.GetEvent <MessageSentEvent>().Publish(players); } else if (CurrentSelectedIndex == 1) { await NavigationMethod.NavigateAsync(nameof(MainPageWith5Players)); players.Add(new Player(Player1.ToString())); players.Add(new Player(Player2.ToString())); players.Add(new Player(Player3.ToString())); players.Add(new Player(Player4.ToString())); players.Add(new Player(Player5.ToString())); EventAggregator.GetEvent <MessageSentEvent5Players>().Publish(players); } else { await NavigationMethod.NavigateAsync(nameof(MainPageWith6Players)); players.Add(new Player(Player1.ToString())); players.Add(new Player(Player2.ToString())); players.Add(new Player(Player3.ToString())); players.Add(new Player(Player4.ToString())); players.Add(new Player(Player5.ToString())); players.Add(new Player(Player6.ToString())); EventAggregator.GetEvent <MessageSentEvent6Players>().Publish(players); } }
void Start() { Nick[0] = PlayerPrefs.GetString("Player1"); Nick[1] = PlayerPrefs.GetString("Player2"); Nick[2] = PlayerPrefs.GetString("Player3"); Nick[3] = PlayerPrefs.GetString("Player4"); PlCount = PlayerPrefs.GetInt("PlayerCounter"); switch (PlCount) { case 2: CamOptions[0].SetActive(true); CamOptions[1].SetActive(false); CamOptions[2].SetActive(false); Player1 = Instantiate(PlCar[PlayerPrefs.GetInt("Carro1")], PlSpawn[0].position, Quaternion.identity); Player1.name = "Player1"; Player1.transform.FindChild("Nick").GetComponent <TextMesh>().text = Nick[0]; Player1.GetComponent <CarController>().PlID = 1; Player2 = Instantiate(PlCar[PlayerPrefs.GetInt("Carro2")], PlSpawn[1].position, Quaternion.identity); Player2.name = "Player2"; Player2.transform.FindChild("Nick").GetComponent <TextMesh>().text = Nick[1]; Player2.GetComponent <CarController>().PlID = 2; break; case 3: CamOptions[0].SetActive(false); CamOptions[1].SetActive(true); CamOptions[2].SetActive(false); Player1 = Instantiate(PlCar[PlayerPrefs.GetInt("Carro1")], PlSpawn[0].position, Quaternion.identity); Player1.name = "Player1"; Player1.transform.FindChild("Nick").GetComponent <TextMesh>().text = Nick[0]; Player1.GetComponent <CarController>().PlID = 1; Player2 = Instantiate(PlCar[PlayerPrefs.GetInt("Carro2")], PlSpawn[1].position, Quaternion.identity); Player2.name = "Player2"; Player2.transform.FindChild("Nick").GetComponent <TextMesh>().text = Nick[1]; Player2.GetComponent <CarController>().PlID = 2; Player3 = Instantiate(PlCar[PlayerPrefs.GetInt("Carro3")], PlSpawn[2].position, Quaternion.identity); Player3.name = "Player3"; Player3.transform.FindChild("Nick").GetComponent <TextMesh>().text = Nick[2]; Player3.GetComponent <CarController>().PlID = 3; break; case 4: CamOptions[0].SetActive(false); CamOptions[1].SetActive(false); CamOptions[2].SetActive(true); Player1 = Instantiate(PlCar[PlayerPrefs.GetInt("Carro1")], PlSpawn[0].position, Quaternion.identity); Player1.name = "Player1"; Player1.transform.FindChild("Nick").GetComponent <TextMesh>().text = Nick[0]; Player1.GetComponent <CarController>().PlID = 1; Player2 = Instantiate(PlCar[PlayerPrefs.GetInt("Carro2")], PlSpawn[1].position, Quaternion.identity); Player2.name = "Player2"; Player2.transform.FindChild("Nick").GetComponent <TextMesh>().text = Nick[1]; Player2.GetComponent <CarController>().PlID = 2; Player3 = Instantiate(PlCar[PlayerPrefs.GetInt("Carro3")], PlSpawn[2].position, Quaternion.identity); Player3.name = "Player3"; Player3.transform.FindChild("Nick").GetComponent <TextMesh>().text = Nick[2]; Player3.GetComponent <CarController>().PlID = 3; Player4 = Instantiate(PlCar[PlayerPrefs.GetInt("Carro4")], PlSpawn[3].position, Quaternion.identity); Player4.name = "Player4"; Player4.transform.FindChild("Nick").GetComponent <TextMesh>().text = Nick[3]; Player4.GetComponent <CarController>().PlID = 4; break; } }
public void UpdateTable() { int i = 0; Player1.Text = PlayerList.AllPlayers[i].Points.ToString(); Player1Points.Text = PlayerList.AllPlayers[i].UserName; i++; if (PlayerList.AllPlayers[i].UserName != "NewUser") { Player2.Text = PlayerList.AllPlayers[i].Points.ToString(); Player2Points.Text = PlayerList.AllPlayers[i].UserName; i++; } else { Player2.Hide(); Player2Points.Hide(); } if (PlayerList.AllPlayers[i].UserName != "NewUser") { Player3.Text = PlayerList.AllPlayers[i].Points.ToString(); Player3Points.Text = PlayerList.AllPlayers[i].UserName; i++; } else { Player3.Hide(); Player3Points.Hide(); } if (PlayerList.AllPlayers[i].UserName != "NewUser") { Player4.Text = PlayerList.AllPlayers[i].Points.ToString(); Player4Points.Text = PlayerList.AllPlayers[i].UserName; i++; } else { Player4.Hide(); Player4Points.Hide(); } if (PlayerList.AllPlayers[i].UserName != "NewUser") { Player5.Text = PlayerList.AllPlayers[i].Points.ToString(); Player5Points.Text = PlayerList.AllPlayers[i].UserName; i++; } else { Player5.Hide(); Player5Points.Hide(); } if (PlayerList.AllPlayers[i].UserName != "NewUser") { Player6.Text = PlayerList.AllPlayers[i].Points.ToString(); Player6Points.Text = PlayerList.AllPlayers[i].UserName; i++; } else { Player6.Hide(); Player6Points.Hide(); } if (PlayerList.AllPlayers[i].UserName != "NewUser") { Player7.Text = PlayerList.AllPlayers[i].Points.ToString(); Player7Points.Text = PlayerList.AllPlayers[i].UserName; i++; } else { Player7.Hide(); Player7Points.Hide(); } if (PlayerList.AllPlayers[i].UserName != "NewUser") { Player8.Text = PlayerList.AllPlayers[i].Points.ToString(); Player8Points.Text = PlayerList.AllPlayers[i].UserName; i++; } else { Player8.Hide(); Player8Points.Hide(); } }
public override void LoadContent() { if (Content == null) Content = new ContentManager(ScreenManager.Game.Services, "Content"); #region loaded content myModel = Content.Load<Model>("Model\\fighter"); Player2 = Content.Load<Model>("Model\\Player2"); Player3 = Content.Load<Model>("Model\\Player3"); Player4 = Content.Load<Model>("Model\\player4"); Asteroid1 = Content.Load<Model>("Model\\Asteroid1"); Asteroid2 = Content.Load<Model>("Model\\Asteroid2"); Asteroid3 = Content.Load<Model>("Model\\Asteroid3"); globe = Content.Load<Model>("Model\\globe"); Explosion = Content.Load<SoundEffect>("Audio\\explosion3"); dataScreen = Content.Load<Texture2D>("Images\\DataScreen"); BackGround = Content.Load<Texture2D>("Images\\background"); panel = Content.Load<Texture2D>("Images\\panel"); panel2 = Content.Load<Texture2D>("Images\\panel2"); hypButton = Content.Load<Texture2D>("Images\\p1hyp"); hypButton2 = Content.Load<Texture2D>("Images\\p2hypclk"); ammo = Content.Load<Model>("Model\\ammo"); Engine = Content.Load<SoundEffect>("Audio\\engine_3"); WeaponFire = Content.Load<SoundEffect>("Audio\\pdp1_fire"); defaultFont = Content.Load<SpriteFont>("Fonts\\defaultFont"); HyperSpace = Content.Load<SoundEffect>("Audio\\hax2_fire_alt"); play = new Player(myModel, Player1Start, 0.0f, 10); play2 = new Player2(Player2, Player2Start, 0.0f, 10); play3 = new Player3(Player3, Player3Start, 0.0f, 10); play4 = new Player4(Player4, Player4Start, 0.0f, 10); Projectile bullet = new Projectile(ammo, Initial, 0.0f, Initial, false, Initial); BulletList = new Projectile[noBullets]; Bullet2List = new Projectile[noBullets]; Bullet3List = new Projectile[noBullets]; Bullet4List = new Projectile[noBullets]; #endregion #region Graphic Device and screen elements screenWidth = ScreenManager.GraphicsDevice.PresentationParameters.BackBufferWidth; screenHeight = ScreenManager.GraphicsDevice.PresentationParameters.BackBufferHeight; aspectRatio = ScreenManager.GraphicsDevice.Viewport.AspectRatio; #endregion #region initialise Asteroids AP1.X = 0; AP1.Y = 0; AP2.X = -2500; AP2.Y = -2000; AP3.X = -1500; AP3.Y = -1500; AP4.X = -300; AP4.Y = 1500; asteroid1List[0] = new Asteroid(Asteroid1, AP1, 0.005f, true, 5); asteroid1List[1] = new Asteroid(Asteroid1, AP2, 1.5f, true, 5); asteroid3List[0] = new Asteroid(Asteroid3, AP3, 0.005f, true, 1); asteroid3List[1] = new Asteroid(Asteroid3, AP4, 0.5f, true, 1); asteroid3List[2] = new Asteroid(Asteroid3, new Vector3(2500, 1900, 0), 1.25f, true, 1); asteroid3List[3] = new Asteroid(Asteroid3, new Vector3(300, 2500, 0), 2.0f, true, 1); asteroid3List[4] = new Asteroid(Asteroid3, new Vector3(-2500, 1500, 0), 2.5f, true, 1); asteroid3List[5] = new Asteroid(Asteroid3, new Vector3(-500, 200, 0), 3.0f, true, 1); asteroid3List[6] = new Asteroid(Asteroid3, new Vector3(-1500, 2000, 0), 3.5f, true, 1); asteroid3List[7] = new Asteroid(Asteroid3, new Vector3(1500, -2500, 0), 4.0f, true, 1); for (int i = 0; i < NumAsteroid2; i++) asteroid2List[i] = new Asteroid(Asteroid2, new Vector3(4000, 4000, 0), 0.005f, false, 3); for (int i = 8; i < NumAsteroid3; i++) asteroid3List[i] = new Asteroid(Asteroid3, new Vector3(4000, 4000, 0), 0.005f, false, 1); #endregion #region initialise bullet list for (int i = 0; i < noBullets; i++) { BulletList[i] = new Projectile(ammo, new Vector3(5000, 5000, 0), 0.0f, Initial, false, Initial); } #endregion #region initialise bullet 2 list for (int i = 0; i < noBullets; i++) { Bullet2List[i] = new Projectile(ammo, new Vector3(5000, 5000, 0), 0.0f, Initial, false, Initial); } #endregion #region initialise bullet 3 list for (int i = 0; i < noBullets; i++) { Bullet3List[i] = new Projectile(ammo, new Vector3(5000, 5000, 0), 0.0f, Initial, false, Initial); } #endregion #region initialise bullet 4 list for (int i = 0; i < noBullets; i++) { Bullet4List[i] = new Projectile(ammo, new Vector3(5000, 5000, 0), 0.0f, Initial, false, Initial); } #endregion }