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); }
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); }
public override void Init(bool hasKeys, params object[] keys) { if (hasKeys) { this._mainKey = keys[0] as UILevel003Key; InitDataFromKeys(_mainKey); } InitOnButtonClick(); InitButtonData(); }
private void Start() { UILevel003Key key = new UILevel003Key(UILevel003KeyType.BeforeMain, string.Empty); UIManager.Instance.UIEnter <UILevel003>(UIEnterStyle.FromTopToBottom, true, true, key); }
private void InitDataFromKeys(UILevel003Key key) { TextTool.RefreshText(_promptText, key.promptStr); }