// Start is called before the first frame update void Start() { InvokeRepeating("requette", 0f, 1f); p1 = new Main.Player(); p2 = new Main.Player(); p3 = new Main.Player(); p4 = new Main.Player(); p5 = new Main.Player(); p6 = new Main.Player(); tabPlayer = new Main.Player[7] { null, p1, p2, p3, p4, p5, p6 }; }
private static IEnumerator userInfo() { WWWForm logform = new WWWForm(); var www = new WWW("https://primsie-spears.000webhostapp.com/select.php", logform); yield return(www); string[] data = www.text.Split(new string[] { "," }, System.StringSplitOptions.None); int x = 0; for (int i = 1; i < 7; i++) { tabPlayer[i] = new Main.Player(int.Parse(data[x++]), int.Parse(data[x++]), int.Parse(data[x++]), int.Parse(data[x++]), int.Parse(data[x++]), int.Parse(data[x++]), int.Parse(data[x++])); } }
// Start is called before the first frame update void Start() { player = Main.Global.Player; Main.Global.addPlayer(player); joueur = new Joueur(); joueur.Numero = position; Debug.Log("Joueur " + position + " créé"); Debug.Log(Main.Global.Player.ToString()); Main.TabImage tab = Main.Global.TabD; text.text = "Joueur : " + position.ToString(); RandomDim(); RandomLoco(); RandomEqui(); }
// Start is called before the first frame update void Start() { Main.TabImage tab = Main.Global.TabE; int x; int y; x = Random.Range(1, tab.getTaille()); y = Random.Range(1, tab.getTaille()); while (x == y) { y = Random.Range(1, tab.getTaille()); } images = new Main.Image[2]; images[0] = tab.getImageind(x); images[1] = tab.getImageind(y); pics = images[0]; p = Main.Global.Player; ShowRandomImage(); }
// Start is called before the first frame update void Start() { player = Main.Global.Player; // Debug.Log(player.ToString()); text.text = "Le player selectionné est :" + player.Id; }
void Start() { p = Main.Global.Player; button.onClick.AddListener(() => ButtonClicked()); }