void Start() { lastNation01 = Game.Instance.Nation01; lastNation02 = Game.Instance.Nation02; if (id == -1) { if (PlayerEnumUtils.GetCurrentPlayer() == PlayerEnum.LEFT) { id = 0; } else { id = 1; } } //Set (); }
protected void getNational() { if (this.itemId != 0) { objNational = new Nationals(); DataTable objTable = objNational.getDataById(itemId); if (objTable.Rows.Count > 0) { this.txtName.Text = objTable.Rows[0]["Name"].ToString(); if (objTable.Rows[0]["State"].ToString() == "True") { this.checkState.Checked = true; } else { this.checkState.Checked = false; } } } }
void Start() { while (Game.Instance.Nation01 == Nationals.NONE) { System.Array A = System.Enum.GetValues(typeof(Nationals)); Nationals V = (Nationals)A.GetValue(UnityEngine.Random.Range(0, A.Length)); Game.Instance.Nation01 = V; } Game.Instance.TournamentMode = true; /*RealPlayerId = (byte)NationalSuits.getNationId (Game.Instance.Nation01); * TournamentUtil.Instance.R16Ids [0] = RealPlayerId; * TournamentUtil.Instance.QuarterIds [0] = RealPlayerId; * TournamentUtil.Instance.SemiFinalsIds [0] = RealPlayerId; * TournamentUtil.Instance.FinalsIds [0] = RealPlayerId;*/ NextRound(); }
public EditProfileViewModel(User MyUser) { NewUser = MyUser; SelectedNat = new Nationality(NewUser.Nationality); Nationals.Add(new Nationality("Brasileira")); Nationals.Add(new Nationality("Portuguesa")); Nationals.Add(new Nationality("Ucraniana")); Nationality.Add("Brasileira", "br.png"); Nationality.Add("Portuguesa", "pt.png"); Nationality.Add("Ucraniana", "ua.png"); string temp; if (!Nationality.TryGetValue(NewUser.Nationality, out temp)) { ImageSource = "earth.png"; } else { ImageSource = temp; } Index = Nationals.IndexOf(SelectedNat); EditProfileCommand = new Command(async() => await EditProfileExecute()); }
// get the skin color depending on the nation public static Color getSkinColor(Nationals nation, bool firstSkin) { Color skinWhite, skinBlack; if (firstSkin) { skinWhite = skin1white; skinBlack = skin1black; } else { skinWhite = skin2white; skinBlack = skin2black; } switch (nation) { // only black case Nationals.ALGERIA: case Nationals.BRAZIL: case Nationals.CAMEROON: case Nationals.CHILE: case Nationals.COLOMBIA: case Nationals.COTE_D_IVOIRE: case Nationals.ECUADOR: case Nationals.GHANA: case Nationals.HONDURAS: case Nationals.IRAN: case Nationals.MEXICO: case Nationals.NIGERIA: case Nationals.URUGUAY: return(skinBlack); default: return(skinWhite); } }
public NationalSuit(Nationals nation, NationalColors nationalColors) { this.nation = nation; this.nationalColors = nationalColors; }
// returns the decoration id. It's a number and 0 means no decoration. // body, shoulder, thigh public static byte[] getDecorations(Nationals nation) { switch (nation) { case Nationals.ALGERIA: return(new byte[] { 0, 3, 0 }); // done case Nationals.ARGENTINA: return(new byte[] { 2, 5, 0 }); // done case Nationals.AUSTRALIA: return(new byte[] { 0, 3, 0 }); // done case Nationals.BELGIUM: return(new byte[] { 0, 0, 0 }); // done case Nationals.BOSNIA_AND_HERZEGOVINA: return(new byte[] { 0, 5, 0 }); // done case Nationals.BRAZIL: return(new byte[] { 0, 3, 0 }); // done case Nationals.CAMEROON: return(new byte[] { 0, 0, 0 }); // done case Nationals.CHILE: return(new byte[] { 0, 4, 0 }); // done case Nationals.COLOMBIA: return(new byte[] { 0, 5, 0 }); // done case Nationals.COSTA_RICA: return(new byte[] { 0, 3, 0 }); // done case Nationals.COTE_D_IVOIRE: return(new byte[] { 0, 0, 0 }); // done case Nationals.CROATIA: return(new byte[] { 1, 0, 0 }); // done case Nationals.ECUADOR: return(new byte[] { 0, 0, 0 }); // done case Nationals.ENGLAND: return(new byte[] { 0, 0, 0 }); // done case Nationals.FRANCE: return(new byte[] { 0, 0, 0 }); // done case Nationals.GERMANY: return(new byte[] { 5, 5, 0 }); // done case Nationals.GHANA: return(new byte[] { 0, 0, 0 }); // done case Nationals.GREECE: return(new byte[] { 0, 1, 0 }); // done case Nationals.HONDURAS: return(new byte[] { 0, 5, 0 }); // done case Nationals.IRAN: return(new byte[] { 0, 0, 0 }); // done case Nationals.ITALY: return(new byte[] { 0, 4, 0 }); // done case Nationals.JAPAN: return(new byte[] { 0, 5, 0 }); // done case Nationals.KOREA_REPUBLIC: return(new byte[] { 0, 0, 0 }); // done case Nationals.MEXICO: return(new byte[] { 0, 5, 0 }); // done case Nationals.NETHERLANDS: return(new byte[] { 0, 0, 0 }); // done case Nationals.NIGERIA: return(new byte[] { 0, 3, 0 }); // done case Nationals.PORTUGAL: return(new byte[] { 4, 0, 0 }); // done case Nationals.RUSSIA: return(new byte[] { 0, 5, 0 }); // done case Nationals.SPAIN: return(new byte[] { 3, 5, 0 }); // done case Nationals.SWEDEN: return(new byte[] { 0, 5, 0 }); // done case Nationals.SWITERLAND: return(new byte[] { 0, 4, 0 }); // done case Nationals.TURKEY: return(new byte[] { 0, 0, 0 }); // done case Nationals.URUGUAY: return(new byte[] { 0, 4, 0 }); // done case Nationals.USA: return(new byte[] { 0, 0, 0 }); // done default: return(new byte[] { 0, 0, 0 }); // should never happen } }
public static Sprite getNationFlag(Nationals nation) { switch (nation) { case Nationals.ALGERIA: return(Flags._ALGERIA); case Nationals.ARGENTINA: return(Flags._ARGENTINA); case Nationals.AUSTRALIA: return(Flags._AUSTRALIA); case Nationals.BELGIUM: return(Flags._BELGIUM); case Nationals.BOSNIA_AND_HERZEGOVINA: return(Flags._BOSNIA_AND_HERZEGOVINA); case Nationals.BRAZIL: return(Flags._BRAZIL); case Nationals.CAMEROON: return(Flags._CAMEROON); case Nationals.CHILE: return(Flags._CHILE); case Nationals.CHINA: return(Flags._CHINA); case Nationals.COLOMBIA: return(Flags._COLOMBIA); case Nationals.COSTA_RICA: return(Flags._COSTA_RICA); case Nationals.COTE_D_IVOIRE: return(Flags._COTE_D_IVOIRE); case Nationals.CROATIA: return(Flags._CROATIA); case Nationals.ECUADOR: return(Flags._ECUADOR); case Nationals.ENGLAND: return(Flags._ENGLAND); case Nationals.FRANCE: return(Flags._FRANCE); case Nationals.GERMANY: return(Flags._GERMANY); case Nationals.GHANA: return(Flags._GHANA); case Nationals.GREECE: return(Flags._GREECE); case Nationals.HONDURAS: return(Flags._HONDURAS); case Nationals.IRAN: return(Flags._IRAN); case Nationals.ITALY: return(Flags._ITALY); case Nationals.JAPAN: return(Flags._JAPAN); case Nationals.KOREA_REPUBLIC: return(Flags._KOREA_REPUBLIC); case Nationals.MEXICO: return(Flags._MEXICO); case Nationals.MOLDOVA: return(Flags._MOLDOVA); case Nationals.NETHERLANDS: return(Flags._NETHERLAND); case Nationals.NIGERIA: return(Flags._NIGERIA); case Nationals.PORTUGAL: return(Flags._PORTUGAL); case Nationals.RUSSIA: return(Flags._RUSSIA); case Nationals.SPAIN: return(Flags._SPAIN); case Nationals.SWEDEN: return(Flags._SWEDEN); case Nationals.SWITERLAND: return(Flags._SWITERLAND); case Nationals.TURKEY: return(Flags._TURKEY); case Nationals.URUGUAY: return(Flags._URUGUAY); case Nationals.USA: return(Flags._USA); default: return(null); // should never happen } }
public static string getNationNameLong(Nationals nation) { switch (nation) { case Nationals.ALGERIA: return(Localization.Get("ALGERIA")); case Nationals.ARGENTINA: return(Localization.Get("ARGENTINA")); case Nationals.AUSTRALIA: return(Localization.Get("AUSTRALIA")); case Nationals.BELGIUM: return(Localization.Get("BELGIUM")); case Nationals.BOSNIA_AND_HERZEGOVINA: return(Localization.Get("BOSNIA")); case Nationals.BRAZIL: return(Localization.Get("BRAZIL")); case Nationals.CAMEROON: return(Localization.Get("CAMEROON")); case Nationals.CHILE: return(Localization.Get("CHILE")); case Nationals.CHINA: return(Localization.Get("CHINA")); case Nationals.COLOMBIA: return(Localization.Get("COLOMBIA")); case Nationals.COSTA_RICA: return(Localization.Get("COSTA RICA")); case Nationals.COTE_D_IVOIRE: return(Localization.Get("COTEDIVOIRE")); case Nationals.CROATIA: return(Localization.Get("CROATIA")); case Nationals.ECUADOR: return(Localization.Get("ECUADOR")); case Nationals.ENGLAND: return(Localization.Get("ENGLAND")); case Nationals.FRANCE: return(Localization.Get("FRANCE")); case Nationals.GERMANY: return(Localization.Get("GERMANY")); case Nationals.GHANA: return(Localization.Get("GHANA")); case Nationals.GREECE: return(Localization.Get("GREECE")); case Nationals.HONDURAS: return(Localization.Get("HONDURAS")); case Nationals.IRAN: return(Localization.Get("IRAN")); case Nationals.ITALY: return(Localization.Get("ITALY")); case Nationals.JAPAN: return(Localization.Get("JAPAN")); case Nationals.KOREA_REPUBLIC: return(Localization.Get("KOREA REPUBLIC")); case Nationals.MEXICO: return(Localization.Get("MEXICO")); case Nationals.MOLDOVA: return(Localization.Get("MOLDOVA")); case Nationals.NETHERLANDS: return(Localization.Get("NETHERLANDS")); case Nationals.NIGERIA: return(Localization.Get("NIGERIA")); case Nationals.PORTUGAL: return(Localization.Get("PORTUGAL")); case Nationals.RUSSIA: return(Localization.Get("RUSSIA")); case Nationals.SPAIN: return(Localization.Get("SPAIN")); case Nationals.SWEDEN: return(Localization.Get("SWEDEN")); case Nationals.SWITERLAND: return(Localization.Get("SWITERLAND")); case Nationals.TURKEY: return(Localization.Get("TURKEY")); case Nationals.URUGUAY: return(Localization.Get("URUGUAY")); case Nationals.USA: return(Localization.Get("USA")); default: return("ERRRROr"); // should never happen } }
public static string getNationNameShort(Nationals nation) { switch (nation) { case Nationals.ALGERIA: return("ALG"); case Nationals.ARGENTINA: return("ARG"); case Nationals.AUSTRALIA: return("AUS"); case Nationals.BELGIUM: return("BEL"); case Nationals.BOSNIA_AND_HERZEGOVINA: return("BIH"); case Nationals.BRAZIL: return("BRA"); case Nationals.CAMEROON: return("CMR"); case Nationals.CHILE: return("CHI"); case Nationals.CHINA: return("CHN"); case Nationals.COLOMBIA: return("COL"); case Nationals.COSTA_RICA: return("CRC"); case Nationals.COTE_D_IVOIRE: return("CIV"); case Nationals.CROATIA: return("CRO"); case Nationals.ECUADOR: return("ECU"); case Nationals.ENGLAND: return("ENG"); case Nationals.FRANCE: return("FRA"); case Nationals.GERMANY: return("GER"); case Nationals.GHANA: return("GHA"); case Nationals.GREECE: return("GRE"); case Nationals.HONDURAS: return("HON"); case Nationals.IRAN: return("IRN"); case Nationals.ITALY: return("ITA"); case Nationals.JAPAN: return("JPN"); case Nationals.KOREA_REPUBLIC: return("KOR"); case Nationals.MEXICO: return("MEX"); case Nationals.MOLDOVA: return("MDA"); case Nationals.NETHERLANDS: return("NED"); case Nationals.NIGERIA: return("NGA"); case Nationals.PORTUGAL: return("POR"); case Nationals.RUSSIA: return("RUS"); case Nationals.SPAIN: return("ESP"); case Nationals.SWEDEN: return("SWE"); case Nationals.SWITERLAND: return("SUI"); case Nationals.TURKEY: return("TUR"); case Nationals.URUGUAY: return("URU"); case Nationals.USA: return("USA"); default: return("ERRRROr"); // should never happen } }
public static int getNationId(Nationals nation) { // jerseyColor, pantsColor, bodyDcColor, shoulderDcColor, thighDcColor, collarColor switch (nation) { case Nationals.ALGERIA: return(0); case Nationals.ARGENTINA: return(1); case Nationals.AUSTRALIA: return(2); case Nationals.BELGIUM: return(3); case Nationals.BOSNIA_AND_HERZEGOVINA: return(4); case Nationals.BRAZIL: return(5); case Nationals.CAMEROON: return(6); case Nationals.CHILE: return(7); case Nationals.CHINA: return(8); case Nationals.COLOMBIA: return(9); case Nationals.COSTA_RICA: return(10); case Nationals.COTE_D_IVOIRE: return(11); case Nationals.CROATIA: return(12); case Nationals.ECUADOR: return(13); case Nationals.ENGLAND: return(14); case Nationals.FRANCE: return(15); case Nationals.GERMANY: return(16); case Nationals.GHANA: return(17); case Nationals.GREECE: return(18); case Nationals.HONDURAS: return(19); case Nationals.IRAN: return(20); case Nationals.ITALY: return(21); case Nationals.JAPAN: return(22); case Nationals.KOREA_REPUBLIC: return(23); case Nationals.MEXICO: return(24); case Nationals.MOLDOVA: return(25); case Nationals.NETHERLANDS: return(26); case Nationals.NIGERIA: return(27); case Nationals.PORTUGAL: return(28); case Nationals.RUSSIA: return(29); case Nationals.SPAIN: return(30); case Nationals.SWEDEN: return(31); case Nationals.SWITERLAND: return(32); case Nationals.TURKEY: return(33); case Nationals.URUGUAY: return(34); case Nationals.USA: return(35); default: return(40); } }
// get suit of the nation public static NationalSuit getSuitForNation(Nationals nation) { // jerseyColor, pantsColor, bodyDcColor, shoulderDcColor, thighDcColor, collarColor switch (nation) { case Nationals.ALGERIA: return(new NationalSuit(nation, ColorsAlgeria)); case Nationals.ARGENTINA: return(new NationalSuit(nation, ColorsArgentina)); case Nationals.AUSTRALIA: return(new NationalSuit(nation, ColorsAustralia)); case Nationals.BELGIUM: return(new NationalSuit(nation, ColorsBelgium)); case Nationals.BOSNIA_AND_HERZEGOVINA: return(new NationalSuit(nation, ColorsBosniaAndHerzegovina)); case Nationals.BRAZIL: return(new NationalSuit(nation, ColorsBrasil)); case Nationals.CAMEROON: return(new NationalSuit(nation, ColorsCameroon)); case Nationals.CHILE: return(new NationalSuit(nation, ColorsChile)); case Nationals.CHINA: return(new NationalSuit(nation, ColorsChina)); case Nationals.COLOMBIA: return(new NationalSuit(nation, ColorsColombia)); case Nationals.COSTA_RICA: return(new NationalSuit(nation, ColorsCostaRica)); case Nationals.COTE_D_IVOIRE: return(new NationalSuit(nation, ColorsCoteDIvoire)); case Nationals.CROATIA: return(new NationalSuit(nation, ColorsCroazia)); case Nationals.ECUADOR: return(new NationalSuit(nation, ColorsEcuador)); case Nationals.ENGLAND: return(new NationalSuit(nation, ColorsEngland)); case Nationals.FRANCE: return(new NationalSuit(nation, ColorsFrance)); case Nationals.GERMANY: return(new NationalSuit(nation, ColorsGermany)); case Nationals.GHANA: return(new NationalSuit(nation, ColorsGhana)); case Nationals.GREECE: return(new NationalSuit(nation, ColorsGreece)); case Nationals.HONDURAS: return(new NationalSuit(nation, ColorsHonduras)); case Nationals.IRAN: return(new NationalSuit(nation, ColorsIran)); case Nationals.ITALY: return(new NationalSuit(nation, ColorsItaly)); case Nationals.JAPAN: return(new NationalSuit(nation, ColorsJapan)); case Nationals.KOREA_REPUBLIC: return(new NationalSuit(nation, ColorsKoreaRepublic)); case Nationals.MEXICO: return(new NationalSuit(nation, ColorsMexico)); case Nationals.MOLDOVA: return(new NationalSuit(nation, ColorsMoldova)); case Nationals.NETHERLANDS: return(new NationalSuit(nation, ColorsNetherlands)); case Nationals.NIGERIA: return(new NationalSuit(nation, ColorsNigeria)); case Nationals.PORTUGAL: return(new NationalSuit(nation, ColorsPortugal)); case Nationals.RUSSIA: return(new NationalSuit(nation, ColorsRussia)); case Nationals.SPAIN: return(new NationalSuit(nation, ColorsSpain)); case Nationals.SWEDEN: return(new NationalSuit(nation, ColorsSweden)); case Nationals.SWITERLAND: return(new NationalSuit(nation, ColorsSwiterland)); case Nationals.TURKEY: return(new NationalSuit(nation, ColorsTurkey)); case Nationals.URUGUAY: return(new NationalSuit(nation, ColorsUruguay)); case Nationals.USA: return(new NationalSuit(nation, ColorsUsa)); default: return(new NationalSuit(nation, ColorsGoalKeeper)); } }
void Start() { isInGoldenGoal = false; // stop timer, but play the game Game.Instance.TimerActive = false; CancelInvoke("PrepareEnemie"); Game.Instance.SetGameActive(true); // distance from the screen float dFromScreen = 4f; points01 = new PointsManager(); points02 = new PointsManager(); canShoot = false; float doorPos = Camera.main.ScreenToWorldPoint(new Vector3(Screen.width, 0, 0)).x; currentPlayer = PlayerEnumUtils.GetCurrentPlayer(); offlineMatch = Game.Instance.OnlinePlay == false && Game.Instance.BluetoothPlay == false && Game.Instance.LocalMultiPlayer == false; if (SavedVariables.FirstPlay) { SavedVariables.FirstPlay = false; tutorial.SetActive(true); } // disable some components MenuPause.SetActive(false); MenuGameEnded.SetActive(false); if (Game.Instance.TournamentMode) { GameEndedRowOffline.SetActive(false); GameEndedRowOnline.SetActive(false); GameEndedTournament.SetActive(true); RedoButton.enabled = false; RedoButton.SetState(UIButton.State.Disabled, true); } else if (Game.Instance.OnlinePlay || Game.Instance.BluetoothPlay) { GameEndedRowOffline.SetActive(false); GameEndedRowOnline.SetActive(true); GameEndedTournament.SetActive(false); } else if (Game.Instance.LocalPlay || Game.Instance.LocalMultiPlayer) { GameEndedRowOffline.SetActive(true); GameEndedRowOnline.SetActive(false); GameEndedTournament.SetActive(false); } Points01.enabled = false; Points02.enabled = false; if (Game.Instance.BluetoothPlay || Game.Instance.OnlinePlay) { PauseButton.SetActive(false); } else { EndMatchButton.SetActive(false); } // get the letters distance for (byte i = 0; i < letters.Length; i++) // count the distance from the letter on the left { if (i == 0) { lettersDistances[i] = 0; } else { lettersDistances[i] = letters[i].transform.position.x - letters[i - 1].transform.position.x; } } // SET WALLS POSITION { //Move each wall to its edge location: topDeath.size = new Vector2(Camera.main.ScreenToWorldPoint(new Vector3(Screen.width, 0, 0)).x * 2 * 2, 1); topDeath.offset = new Vector2(0, Camera.main.ScreenToWorldPoint(new Vector3(0, Screen.height, 0)).y + 0.5f + dFromScreen); bottomDeath.size = new Vector2(Camera.main.ScreenToWorldPoint(new Vector3(Screen.width, 0, 0)).x * 2 * 2, 1); bottomDeath.offset = new Vector2(0, Camera.main.ScreenToWorldPoint(new Vector3(0, 0, 0)).y - 0.5f - dFromScreen); leftDeath.size = new Vector2(1, Camera.main.ScreenToWorldPoint(new Vector3(0, Screen.height, 0)).y * 2 * 2);; leftDeath.offset = new Vector2(Camera.main.ScreenToWorldPoint(new Vector3(0, 0, 0)).x - 0.5f - dFromScreen, 0); rightDeath.size = new Vector2(1, Camera.main.ScreenToWorldPoint(new Vector3(0, Screen.height, 0)).y * 2 * 2); rightDeath.offset = new Vector2(Camera.main.ScreenToWorldPoint(new Vector3(Screen.width, 0, 0)).x + 0.5f + dFromScreen, 0); //Move each wind to its edge location: topWall.size = new Vector2(Camera.main.ScreenToWorldPoint(new Vector3(Screen.width, 0, 0)).x * 2, 1); topWall.offset = new Vector2(0, Camera.main.ScreenToWorldPoint(new Vector3(0, Screen.height, 0)).y + 0.5f); bottomWall.size = new Vector2(Camera.main.ScreenToWorldPoint(new Vector3(Screen.width, 0, 0)).x * 2, 1); bottomWall.offset = new Vector2(0, Camera.main.ScreenToWorldPoint(new Vector3(0, 0, 0)).y - 0.5f); leftWall.size = new Vector2(1, Camera.main.ScreenToWorldPoint(new Vector3(0, Screen.height, 0)).y * 2);; leftWall.offset = new Vector2(Camera.main.ScreenToWorldPoint(new Vector3(0, 0, 0)).x - 0.5f, 0); rightWall.size = new Vector2(1, Camera.main.ScreenToWorldPoint(new Vector3(0, Screen.height, 0)).y * 2); rightWall.offset = new Vector2(Camera.main.ScreenToWorldPoint(new Vector3(Screen.width, 0, 0)).x + 0.5f, 0); } // SETUP BALL AND DOORS { // move down the referee Whistle(true); // doors doorLeft.transform.position = new Vector3(-doorPos, 0, 0); doorRight.transform.position = new Vector3(+doorPos, 0, 0); } GameObject player01 = GameObject.Instantiate(playerBase, Vector3.zero, Quaternion.identity) as GameObject; GameObject player02 = GameObject.Instantiate(playerBase, Vector3.zero, Quaternion.identity) as GameObject; GameObject goalKeeper = GameObject.Instantiate(playerBase, Vector3.zero, Quaternion.identity) as GameObject; while (Game.Instance.Nation01 == Nationals.NONE) { System.Array A = System.Enum.GetValues(typeof(Nationals)); Nationals V = (Nationals)A.GetValue(UnityEngine.Random.Range(0, A.Length)); Game.Instance.Nation01 = V; } while (Game.Instance.Nation02 == Nationals.NONE || Game.Instance.Nation02 == Game.Instance.Nation01) { System.Array A = System.Enum.GetValues(typeof(Nationals)); Nationals V = (Nationals)A.GetValue(UnityEngine.Random.Range(0, A.Length)); Game.Instance.Nation02 = V; } Flag01.sprite2D = NationalSuits.getNationFlag(Game.Instance.Nation01); Flag02.sprite2D = NationalSuits.getNationFlag(Game.Instance.Nation02); PlayerName01.text = NationalSuits.getNationNameShort(Game.Instance.Nation01); PlayerName02.text = NationalSuits.getNationNameShort(Game.Instance.Nation02); NationalSuit nationalSuit01 = NationalSuits.getSuitForNation(Game.Instance.Nation01); NationalSuit nationalSuit02 = NationalSuits.getSuitForNation(Game.Instance.Nation02); //LifeBarContent01.color = nationalSuit01.NationalColors.Jersey; //LifeBarContent02.color = nationalSuit02.NationalColors.Jersey; // SETUP PLAYERS { // set suit colors PlayerConfigurer.ConfigurePlayer(player01, nationalSuit01); PlayerConfigurer.ConfigurePlayer(player02, nationalSuit02); PlayerConfigurer.ConfigurePlayer(goalKeeper, NationalSuits.getGoalKeeperSuit()); // create many copies PlayerShooter.Instance.SetupPlayers(player01, player02, goalKeeper); Destroy(player01); Destroy(player02); Destroy(goalKeeper); } }