Beispiel #1
0
        void OnEnable()
        {
            try
            {
                dropdownMain = gameObject.GetComponent <CustomDropdown>();
            }

            catch { }

            if (dropdownMain == null)
            {
                dropdownMulti = gameObject.GetComponent <DropdownMultiSelect>();
            }

            if (UIManagerAsset == null)
            {
                try
                {
                    UIManagerAsset = Resources.Load <UIManager>("MUIP Manager");
                }

                catch
                {
                    Debug.Log("No UI Manager found. Assign it manually, otherwise you'll get errors about it.");
                }
            }
        }
Beispiel #2
0
        void Awake()
        {
            try
            {
                if (dropdownMain != null)
                {
                    dropdownMain = gameObject.GetComponent <CustomDropdown>();
                }
                else
                {
                    dropdownMulti = gameObject.GetComponent <DropdownMultiSelect>();
                }

                if (UIManagerAsset == null)
                {
                    UIManagerAsset = Resources.Load <UIManager>("MUIP Manager");
                }

                this.enabled = true;

                if (UIManagerAsset.enableDynamicUpdate == false)
                {
                    UpdateDropdown();
                    this.enabled = false;
                }
            }

            catch
            {
                Debug.Log("<b>[Modern UI Pack]</b> No UI Manager found, assign it manually.", this);
            }
        }
 private void OnEnable()
 {
     // Set target
     dropdownTarget = (DropdownMultiSelect)target;
 }
 private void OnEnable()
 {
     dTarget = (DropdownMultiSelect)target;
 }