public static void GetConfirmation(Confirm confirmFunction, ConfirmationType _type, Menu.MenuManager.MenuState _state)
        {
            ConfirmationWindow.confirmFunction = confirmFunction;
            _returnState = _state;

            if(_type.Equals(ConfirmationType.ApplyChanges))	_label.text = "Apply Changes?";
            else _label.text = "Are you sure?";

            _win.enabled = true;
            _yes.Select();
        }
예제 #2
0
        public static void GetConfirmation(Confirm confirmFunction, ConfirmationType _type, Menu.MenuManager.MenuState _state)
        {
            ConfirmationWindow.confirmFunction = confirmFunction;
            _returnState = _state;

            if (_type.Equals(ConfirmationType.ApplyChanges))
            {
                _label.text = "Apply Changes?";
            }
            else
            {
                _label.text = "Are you sure?";
            }

            _win.enabled = true;
            _yes.Select();
        }