Exemplo n.º 1
0
    public void SelectionFormation()
    {
        JObject user = data.GetUser();

        menu.SetFormation(roulant.GetComponent <Dropdown>().value, true);
        menu.SelectionFormation();
    }
Exemplo n.º 2
0
    public async Task RequetteAsyncFormation(bool canvasOpened)
    {
        string resultForm = await RequetteHttpAsyncFormation(data.GetIdUser());

        string resultCharacter = await RequetteHttpAsyncCharacter();

        JArray json          = JArray.Parse(resultForm);
        JArray jsonCharacter = JArray.Parse(resultCharacter);

        menu.Formation(json, jsonCharacter, canvasOpened);
        int index = menu.GetIndexFormation();

        if (index == -1)
        {
            menu.SetFormation(0, canvasOpened);
        }
        else
        {
            menu.SetFormation(index, canvasOpened);
        }
    }