Exemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        creationHandler = GetComponentInParent <DMCreationHandler_August>();
        objectPlacementDropdown.onValueChanged.AddListener(delegate
        {
            OnDropdownUpdate();
        });

        OnDropdownUpdate();
    }
Exemplo n.º 2
0
    private void Start()
    {
        actionHandler   = FindObjectOfType <DMActionHandler_August>();
        creationHandler = FindObjectOfType <DMCreationHandler_August>();

        List <string> selectionNames = new List <string>();
        int           c = 1;

        foreach (var m in Enum.GetNames(typeof(Mode)))
        {
            selectionNames.Add("(" + c.ToString() + ") " + m);
            c++;
        }
        selectionModeDropdown.AddOptions(selectionNames);
    }