Exemplo n.º 1
0
        protected override void Awake()
        {
            base.Awake();

            rInput.Initialize();
            gInput.Initialize();
            bInput.Initialize();
            aInput.Initialize();

            cancelButton.onClick.AddListener(Cancel);
            okButton.onClick.AddListener(() =>
            {
                try
                {
                    if (onColorConfirmed != null)
                    {
                        onColorConfirmed(colorWheel.Color);
                    }
                }
                catch (Exception e)
                {
                    Debug.LogException(e);
                }

                Close();
            });
        }
        public override void Initialize()
        {
            base.Initialize();

            input.Initialize();
            input.OnValueChanged   += OnValueChanged;
            input.DefaultEmptyValue = "0";
        }
Exemplo n.º 3
0
        public override void Initialize()
        {
            base.Initialize();

            input.Initialize();
            input.OnValueChanged   += OnValueChanged;
            input.OnValueSubmitted += OnValueSubmitted;
            input.DefaultEmptyValue = string.Empty;
        }
Exemplo n.º 4
0
        public override void Initialize()
        {
            base.Initialize();

            sizeInput.Initialize();
            sizeInput.OnValueChanged   += OnSizeInputBeingChanged;
            sizeInput.OnValueSubmitted += OnSizeChanged;
            sizeInput.DefaultEmptyValue = "0";
        }
Exemplo n.º 5
0
        protected override void Awake()
        {
            base.Awake();

            rInput.Initialize();
            gInput.Initialize();
            bInput.Initialize();
            aInput.Initialize();

            cancelButton.onClick.AddListener(Cancel);
            okButton.onClick.AddListener(Close);
        }
Exemplo n.º 6
0
        public override void Initialize()
        {
            base.Initialize();

            inputX.Initialize();
            inputY.Initialize();

            inputX.OnValueChanged += OnValueChanged;
            inputY.OnValueChanged += OnValueChanged;

            inputX.OnValueSubmitted += OnValueSubmitted;
            inputY.OnValueSubmitted += OnValueSubmitted;

            inputX.DefaultEmptyValue = "0";
            inputY.DefaultEmptyValue = "0";
        }