コード例 #1
0
ファイル: SelectNmbPlayer.cs プロジェクト: NahelB/Robospectif
    // 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
        };
    }
コード例 #2
0
ファイル: SelectNmbPlayer.cs プロジェクト: NahelB/Robospectif
    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++]));
        }
    }
コード例 #3
0
ファイル: MainScript.cs プロジェクト: NahelB/Robospectif
    // 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();
    }
コード例 #4
0
    // 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();
    }
コード例 #5
0
    // 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;
    }
コード例 #6
0
ファイル: ChangeIdCarte.cs プロジェクト: lucachapelle/projet
 void Start()
 {
     p = Main.Global.Player;
     button.onClick.AddListener(() => ButtonClicked());
 }