public override void Move(int x, int y, BaseScene.INPUT_TYPE type, JoystickManager.JOYSTICK_KEY_STATE keyState, JoystickManager.PLAYER_INDEX player) { if (hasSelect) { return; } if ((Time.time - pressTime) < 0.5f) { return; } pressTime = Time.time; if (downloading) { if (confirm.gameObject.activeSelf) { confirm.Move(x); } return; } if (confirm.gameObject.activeSelf) { confirm.Move(x); return; } if (okBtnSelectFrame.activeSelf) { okBtnSelectFrame.SetActive(false); } else if (alert.gameObject.activeSelf) { return; } if (x != 0) { index += x; } else if (y != 0) { index += y * 4; } if (index < 1) { index = 8; } else if (index > 8) { index = 1; } SelectCard(index); }
public override void Move(int x, int y, BaseScene.INPUT_TYPE type, JoystickManager.JOYSTICK_KEY_STATE keyState, JoystickManager.PLAYER_INDEX player) { if (Time.time - pressTime < 0.3f) { return; } pressTime = Time.time; if (downloading) { return; } Sounder.instance.Play("按键音效"); if (alert.gameObject.activeSelf) { return; } if (confirm.gameObject.activeSelf) { confirm.Move(x); return; } if (curItem == null || curItem == okBtn) { okBtnFrame.SetActive(false); FocusOnItem(okBtn, x, y); } else { FocusOnItem(curItem, x, y); } }
public override void Move(int x, int y, BaseScene.INPUT_TYPE type, JoystickManager.JOYSTICK_KEY_STATE keyState, JoystickManager.PLAYER_INDEX player) { if (!GetCanPress()) { return; } if (SongCard.IsDownloading()) { if (buyConfirm.gameObject.activeSelf) { buyConfirm.Move(x); } return; } if (buyConfirm.gameObject.activeSelf) { buyConfirm.Move(x); } else if (alert.gameObject.activeSelf) { return; } else { Sounder.instance.Play("歌曲切换音效"); if (list.downloading) { return; } if (x != 0) { difficult.Move(x); } else if (y != 0) { list.Move(y); } } }