void Awake()
    {
        BEBlock thisBlock = GetComponent <BEBlock>();

        thisBlock.InitializeBlock();

        dropdown = thisBlock.BlockHeader.GetChild(thisBlock.userInputIndexes[0]).GetComponent <Dropdown>();

        //populating dropdown
        dropdown.ClearOptions();
        foreach (AudioClip audio in thisBlock.BeController.beSoundsList)
        {
            dropdown.options.Add(new Dropdown.OptionData(audio.name));
        }
        dropdown.RefreshShownValue();
    }
    void Awake()
    {
        BEBlock thisBlock = GetComponent <BEBlock>();

        thisBlock.InitializeBlock();

        dropdown = thisBlock.BlockHeader.GetChild(thisBlock.userInputIndexes[0]).GetComponent <Dropdown>();

        //populating dropdown
        dropdown.ClearOptions();
        string[] keys = System.Enum.GetNames(typeof(KeyCode));
        foreach (string key in keys)
        {
            dropdown.options.Add(new Dropdown.OptionData(key));
        }
        dropdown.RefreshShownValue();
    }
    void Awake()
    {
        BEBlock thisBlock = GetComponent <BEBlock>();

        thisBlock.InitializeBlock();

        dropdown = thisBlock.BlockHeader.GetChild(thisBlock.userInputIndexes[0]).GetComponent <Dropdown>();

        //populating dropdown
        dropdown.ClearOptions();
        dropdown.options.Add(new Dropdown.OptionData("Random"));
        foreach (Material color in thisBlock.BeController.beColorsList)
        {
            dropdown.options.Add(new Dropdown.OptionData(color.name));
        }
        dropdown.RefreshShownValue();
    }
    void Awake()
    {
        BEBlock thisBlock = GetComponent <BEBlock>();

        thisBlock.InitializeBlock();

        dropdown = thisBlock.BlockHeader.GetChild(thisBlock.userInputIndexes[0]).GetComponent <Dropdown>();

        //populate dropdown
        dropdown.ClearOptions();

        foreach (BEVariable variable in thisBlock.BeController.BeVariableList)
        {
            dropdown.options.Add(new Dropdown.OptionData(variable.name));
        }
        dropdown.RefreshShownValue();

        BEController.BeVariableListChangeEvent += RepopulateDropdown;
    }
    public void LoadInputs(BEBlock block, string[] inputsArray)
    {
        block.InitializeBlock();

        for (int index = 0; index < block.userInputIndexes.Count; index++)
        {
            if (inputsArray[index][0] == '\'')
            {
                string inputValue = inputsArray[index].Replace("'", "");

                block.SetDynamicUserInput(index, inputValue, false);
            }
            else
            {
                string   blockName    = ParseBlockName(inputsArray[index]);
                string[] blockInputs_ = ParseBlockInputs(inputsArray[index]);

                BEBlock block_ = block.SetDynamicUserInput(index, blockName, true);

                LoadInputs(block_, blockInputs_);
            }
        }
    }