Пример #1
0
    // Start is called before the first frame update
    void Start()
    {
        accessory               = true;
        canvas                  = this.gameObject.transform;
        characterDropdown       = canvas.Find("CharacterDropdown").GetComponent <TMP_Dropdown>();
        customNameField         = canvas.Find("NameInputField (TMP)").GetComponent <TMP_InputField>();
        bodyColourDropdown      = canvas.Find("BodyColourDropdown").GetComponent <TMP_Dropdown>();
        accessoryColourDropdown = canvas.Find("AccessoryColourDropdown").GetComponent <TMP_Dropdown>();
        shoeColourDropdown      = canvas.Find("ShoeColourDropdown").GetComponent <TMP_Dropdown>();

        creationsDropdown = canvas.Find("CreationsDropdown").GetComponent <TMP_Dropdown>();

        // -----------TEST SCRIPT-----------------

        ServerConnect.setUser("Test1");
        ServerConnect.setProfile("Bobby");

        // ---------------------------------------

        FetchCharacters();
    }