// Update is called once per frame void Update() { if (InputManager_JHW.AButtonDown()) { if (choice) { Debug.Log(Singletone.Instance.stage + 3); sceneChange.sceneChange(Singletone.Instance.stage + 3); } else { //그냥 다시 원래 상태 transform.parent.GetComponent <SelectMenu_Ready>().confirm = false; choice = false; gameObject.SetActive(false); } } if (InputManager_JHW.BButtonDown()) { //그냥 원래 상태 transform.parent.GetComponent <SelectMenu_Ready>().confirm = false; choice = false; gameObject.SetActive(false); } }
// Update is called once per frame void Update() { if (MyState.GetMyState() == PlayerState.State.Talk) { return; } switch (moveType) { case MoveType.WAY_POINT: MoveWayPoint(); break; case MoveType.LOOK_AT: MoveLookAt(); break; case MoveType.DAYDREAM: MoveTouchPad(); break; } if (InputManager_JHW.BButtonDown()) { turnBack(); } }
private void Update() { if (InputManager_JHW.AButtonDown()) { source.clip = clips[0]; source.Play(); if (index == 0) { confirm = true; Confirm.SetActive(true); } if (index == 1) { confirm = true; Confirm.SetActive(true); } if (index == 2) { confirm = true; Confirm.SetActive(true); } if (index == 3) { this.gameObject.SetActive(false); Main.SetActive(true); } } if (InputManager_JHW.BButtonDown()) { source.clip = clips[1]; source.Play(); if (index == 0) { index = 3; } if (index == 1) { index = 3; } if (index == 2) { index = 3; } if (index == 3) { this.gameObject.SetActive(false); Main.SetActive(true); } } }
private void Update() { if (InputManager_JHW.AButtonDown()) { source.clip = clips[0]; source.Play(); skillChoice(RotationSkill); } if (InputManager_JHW.BButtonDown()) { source.clip = clips[1]; source.Play(); menu.SelectMenu = -1; menu.confirm = false; } }
private void Update() { if (InputManager_JHW.AButtonDown()) { source.clip = clips[0]; source.Play(); if (!confirm) { SelectMenu = index; confirm = true; player.StartCoroutine(Viberation.ViberationCoroutine(0.2f, 0.3f, OVRInput.Controller.RTouch)); player.StartCoroutine(Viberation.ViberationCoroutine(0.2f, 0.3f, OVRInput.Controller.LTouch)); ui_arr[SelectMenu].GetComponent <Image>().color = new Color(1, 0, 1); Menus[SelectMenu].transform.Translate(0, 0, -10); Menus[SelectMenu].transform.LookAt(Camera.main.transform); Menus[SelectMenu].transform.Rotate(0, 180, 0); } } if (InputManager_JHW.BButtonDown()) { source.clip = clips[1]; source.Play(); if (confirm && SelectMenu >= 0) { Menus[SelectMenu].transform.rotation = Quaternion.identity; Menus[SelectMenu].transform.Translate(0, 0, 10); ui_arr[SelectMenu].GetComponent <Image>().color = new Color(1, 1, 1); SelectMenu = -1; confirm = false; player.StartCoroutine(Viberation.ViberationCoroutine(0.1f, 0.1f, OVRInput.Controller.RTouch)); player.StartCoroutine(Viberation.ViberationCoroutine(0.1f, 0.1f, OVRInput.Controller.LTouch)); } } if (InputManager_JHW.RTriggerOn() && InputManager_JHW.LTriggerOn()) { //준비 완료되었냐고 물어보는 거 확인후!! source.clip = clips[0]; source.Play(); confirm = true; GameStart.gameObject.SetActive(true); // } }
private IEnumerator DisplatStrings(string stringToDisplay) { int stringLength = stringToDisplay.Length; int currentCaracterIndex = 0; HideIcons(); _textComponent.text = ""; while (currentCaracterIndex < stringLength) { _textComponent.text += stringToDisplay[currentCaracterIndex]; currentCaracterIndex++; if (currentCaracterIndex < stringLength) { if (InputManager_JHW.BButton()) { yield return(new WaitForSeconds(CharacterRateMultuplier)); } else { yield return(new WaitForSeconds(SecondsBetweenCharacters)); } } else { break; } } ShowIcon(); while (true) { if (InputManager_JHW.BButtonDown()) { if (_isEndofDialogue) { dia_Play.setEnd(true); if (WaveStart.Length > 0) { myState.SetMyState(PlayerState.State.Nomal); dia_Play.setPlay(true); if (WaveStart[wavecnt] != null) { Debug.Log(WaveStart[wavecnt]); WaveStart[wavecnt].GetComponent <MobGenerater>().Wave_Start = true; wavecnt++; } else { Debug.Log(WaveStart[wavecnt]); } } } break; } yield return(0); } HideIcons(); _isStringBeingRevealed = false; _textComponent.text = ""; if (_isEndofDialogue) { _isEndofDialogue = false; dia_Play.setPlay(true); } }
private void Update() { //KeyBoard - Enter if (InputManager_JHW.AButtonDown()) { source.Play(); if (11 <= index && index <= 13) { sound = index; for (int i = 0; i < 3; ++i) { Sound[i].SetActive(false); } Sound[sound - 11].SetActive(true); } if (21 <= index && index <= 23) { sound2 = index; for (int i = 0; i < 3; ++i) { Sound2[i].SetActive(false); } Sound2[sound2 - 21].SetActive(true); } if (30 <= index && index <= 33) { grapic = index; for (int i = 0; i < 4; ++i) { Grapic[i].SetActive(false); } Grapic[grapic - 30].SetActive(true); } if (index == 3) { index = sound; } if (index == 4) { index = sound2; } if (index == 0) { index = 3; } if (index == 1) { index = grapic; } if (index == 2) { this.gameObject.SetActive(false); Main.SetActive(true); } } else if (InputManager_JHW.BButtonDown()) { source.Play(); bool CheckB = false; if ((index == 0 || index == 1) && CheckB == false) { index = 2; CheckB = true; } if ((index == 2) && CheckB == false) { index = 0; CheckB = true; } if (index == 3 || index == 4) { index = 0; } if (11 <= index && index <= 13) { index = 3; } if (21 <= index && index <= 23) { index = 4; } if (30 <= index && index <= 33) { index = 1; } } }