示例#1
0
    private void OnNextButtonClick(ButtonDirection dir)
    {
        _nextButtonArr[(int)dir].interactable = false;
        UILevel003Key key = null;

        if (_mainKey.keyType == UILevel003KeyType.BeforeMain)
        {
            key = GetKey(UILevel003KeyType.Main);
        }
        else if (_mainKey.keyType != UILevel003KeyType.BeforeMain)
        {
            ButtonDirection rightDir = _mainKey.needClickButtonList[0];
            if (dir == rightDir)
            {
                key = GetKey(UILevel003KeyType.Right);
            }
            else
            {
                key = GetKey(UILevel003KeyType.Wrong);
            }
        }
        if (key == null)
        {
            return;
        }
        if (key.keys == string.Empty)
        {
            UIChangeByButtonDir <UILevel004>(dir);
            return;
        }
        UIChangeByButtonDir <UILevel003>(dir, true, key);
    }
示例#2
0
    private void OnNextButtonClick()
    {
        _nextButton.interactable = false;
        UILevel003Key key = new UILevel003Key(UILevel003KeyType.BeforeMain, string.Empty);

        UIManager.Instance.UIEnter <UILevel003>(UIEnterStyle.FromTopToBottom, true, true, key);
        UIManager.Instance.UIExit(this, UIExitStyle.ToBottom);
    }
示例#3
0
 public override void Init(bool hasKeys, params object[] keys)
 {
     if (hasKeys)
     {
         this._mainKey = keys[0] as UILevel003Key;
         InitDataFromKeys(_mainKey);
     }
     InitOnButtonClick();
     InitButtonData();
 }
示例#4
0
    private void Start()
    {
        UILevel003Key key = new UILevel003Key(UILevel003KeyType.BeforeMain, string.Empty);

        UIManager.Instance.UIEnter <UILevel003>(UIEnterStyle.FromTopToBottom, true, true, key);
    }
示例#5
0
 private void InitDataFromKeys(UILevel003Key key)
 {
     TextTool.RefreshText(_promptText, key.promptStr);
 }