void Update() { if (!_lift.IsMove) { if (_isDisp) { _actionUI.SetActive(true); } else { _actionUI.SetActive(false); } } else { _actionUI.SetActive(false); } if (_isDisp && Input.GetKeyDown(KeyCode.Z) || DSInput.PushDown(DSButton.Circle) && _isDisp) { if (_lift.IsLevel || _lift.IsSwitch) { GameManager.Instance.SetEventState(GameManager.EventState.GimmickEvent); _lift.IsMove = true; } } }
void InputProcess() { if (DSInput.PushDown(DSButton.Circle)) { circleButton = true; } else { circleButton = false; } if (DSInput.PushDown(DSButton.Cross)) { squareButton = true; } else { squareButton = false; } if (DSInput.PushDown(DSButton.R1)) { triangleButton = true; } else { triangleButton = false; } vector = new Vector2(Input.GetAxis("DS_Horizontal") + Input.GetAxis("DS_CrossHorizontal"), 0); }
}/// <summary> /// 入力式 /// </summary> private void PlayerOperational() { float KeyVertical = Input.GetAxis("Horizontal"); // Debug.Log(KeyVertical); if ((Input.GetKeyDown(KeyCode.LeftArrow) || Input.GetKeyDown(KeyCode.RightArrow) || KeyVertical != 0) && isPlayerOperational) { i++; i = i % 2; // Debug.Log("stage" + i + 1); isPlayerOperational = false; } //✖ if (DSInput.PushDown(DSButton.Cross) || Input.GetKeyDown(KeyCode.X)) { isPlayerOperational = false; isTitle = true; SceneMove = true; } //〇 if (DSInput.PushDown(DSButton.Circle) || Input.GetKeyDown(KeyCode.Space) && isPlayerOperational) { isPlayerOperational = false; isTitle = false; SceneMove = true; SoundManager.PlayEffect("Audios/System/selecting", false); } }
void Inputter() { if (Input.GetKeyDown(KeyCode.Space) || DSInput.PushDown(DSButton.Circle)) { StageConsole.MyLoadScene(StageConsole.MyScene.Title); } }
// Update is called once per frame private void Update() { if (DSInput.PushDown(DSButton.Cross)) { SceneManager.LoadScene("Title"); } if (Input.GetKeyDown("a") && !isScene) { videoPlayerOver(); } else if(Input.GetKeyDown("a") && isScene) { isMakufu = true; } //videoPlayer.time if (videoPlayer.time > 4.2f && !isF) { isF = true; } //-------------color.a if (isF && fImege.color.a < 1.0f) { fImege.color = new Vector4(fImege.color.r, fImege.color.g, fImege.color.b, fImege.color.a + speed[0] * Time.deltaTime); } else if (isSD && SDImege.color.a < 1.0f) { SDImege.color = new Vector4(SDImege.color.r, SDImege.color.g, SDImege.color.b, SDImege.color.a + speed[1] * Time.deltaTime); } //else if (isText && textText.color.a < 1.0f) //{ // textText.color = new Vector4(textText.color.r, textText.color.g, textText.color.b, textText.color.a + speed[2] * Time.deltaTime); //} else if (isMakufu && makufuImege.color.a < 1.0f) { makufuImege.color = new Vector4(makufuImege.color.r, makufuImege.color.g, makufuImege.color.b, makufuImege.color.a + speed[3] * Time.deltaTime); } if (fImege.color.a >= 1.0f & !isSD) { isSD = true; } else if (SDImege.color.a >= 1.0f && !isText) { isText = true; Debug.Log("!"); } //else if (textText.color.a >= 1.0f&&!isScene) { isScene = true; } else if (makufu.GetComponent <Image>().color.a >= 1.0f) { Debug.Log("シーン転移+セーフデータを削除の処理まだ入れてません"); SceneManager.LoadScene("Title"); } }
void Update() { if (_info.GetParameter.actSwitch && GameManager.Instance.GetGameState == GameManager.GameState.Main) { if (Input.GetKeyDown(KeyCode.Space) || DSInput.PushDown(DSButton.Triangle)) { ThrowStone(); } if (Input.GetKeyDown(KeyCode.H) || DSInput.PushDown(DSButton.Square)) { HelpCaterpiller(); } } }
void SetControlSystem() { if (Input.GetKeyDown(KeyCode.Z) || DSInput.PushDown(DSButton.Circle)) { ControllerSystem.SetSystem = false; } if (Input.GetKeyDown(KeyCode.RightArrow)) { ControllerSystem.Controller = true; } else if (Input.GetKeyDown(KeyCode.LeftArrow)) { ControllerSystem.Controller = false; } SetObj(ControllerSystem.Controller); }
void InputProcess() { if (Input.GetKey(KeyCode.Space) || DSInput.PushDown(DSButton.Circle)) { circleButton = true; } else { circleButton = false; } if (Input.GetKey(KeyCode.X) || DSInput.PushDown(DSButton.Cross)) { squareButton = true; controllerChenge = true; } else { squareButton = false; } if (Input.GetKeyDown(KeyCode.D) || DSInput.PushDown(DSButton.R1)) { triangleButton = true; } else { triangleButton = false; } if (!controllerChenge) { if (Input.GetKey(KeyCode.RightArrow)) { vector = Vector2.right; } else if (Input.GetKey(KeyCode.LeftArrow)) { vector = Vector2.left; } else { vector = Vector2.zero; } } else if (controllerChenge) { vector = new Vector2(Input.GetAxis("DS_Horizontal") + Input.GetAxis("DS_CrossHorizontal"), 0); } }
private void Update() { if (touch) { if (Input.GetKeyDown(KeyCode.Z) || DSInput.PushDown(DSButton.Circle)) { anime.speed = 1; if (null != lev) { lev.IsActuation = true; } if (null != swi) { swi.IsActuation = true; } } } }
void TitleMove() { if (Input.GetKeyDown(KeyCode.P) || DSInput.PushDown(DSButton.Option)) { ControllerSystem.SetSystem = true; } if (!ControllerSystem.SetSystem) { _systemUI.SetActive(false); if (DSInput.PushDown(DSButton.Circle) || Input.GetKeyDown(KeyCode.Space)) { SceneManager.LoadScene("StageSelect"); } } else { SetingSystem(); } }
void LevelMove() { if (touch && !_endActuation) { _actionUI.enabled = true; if (!lastEne.isLeverLaunched) { if (Input.GetKeyDown(KeyCode.Z) || DSInput.PushDown(DSButton.Circle)) { anime.speed = 1; _endActuation = true; _cameraEvent.SwayingCamera(); StartCoroutine(BreakLevel()); lastEne.isLeverLaunched = true; SoundManager.PlayMusic("Audios/Gimmick/earth-tremor1_2", false); } } } else if (!touch && !_endActuation) { _actionUI.enabled = false; } }
private void Update() { if ((DSInput.PushDown(DSButton.Circle) || Input.GetKeyDown(KeyCode.Z)) && GameManager.Instance.GetEventState == GameManager.EventState.ScenarioEvent || DSInput.Push(DSButton.L1) && GameManager.Instance.GetEventState == GameManager.EventState.ScenarioEvent) { if (count == tempData.Count) { GameManager.Instance.EventEnd(); count = 0; temp.SetActive(false); temp = null; return; } if (tempData[count].balloonColor == BalloonColor.GREEN) { if (null != temp) { temp.SetActive(false); } switch (tempData[count].balloonSize) { case "S": if (tempData[count].balloonPos == "Left") { StartCoroutine(DialogPop(dialog_S_Green[0])); green_S_Text[0].text = tempData[count].message; } else if (tempData[count].balloonPos == "Right") { StartCoroutine(DialogPop(dialog_S_Green[1])); green_S_Text[1].text = tempData[count].message; } break; case "M": if (tempData[count].balloonPos == "Left") { StartCoroutine(DialogPop(dialog_M_Green[0])); green_M_Text[0].text = tempData[count].message; } else if (tempData[count].balloonPos == "Right") { StartCoroutine(DialogPop(dialog_M_Green[1])); green_M_Text[1].text = tempData[count].message; } break; case "L": if (tempData[count].balloonPos == "Left") { StartCoroutine(DialogPop(dialog_L_Green[0])); green_L_Text[0].text = tempData[count].message; } else if (tempData[count].balloonPos == "Right") { StartCoroutine(DialogPop(dialog_L_Green[1])); green_L_Text[1].text = tempData[count].message; } break; } } else if (tempData[count].balloonColor == BalloonColor.RED) { if (null != temp) { temp.SetActive(false); } switch (tempData[count].balloonSize) { case "S": if (tempData[count].balloonPos == "Left") { StartCoroutine(DialogPop(dialog_S_Red[0])); red_S_Text[0].text = tempData[count].message; } else if (tempData[count].balloonPos == "Right") { StartCoroutine(DialogPop(dialog_S_Red[1])); red_S_Text[1].text = tempData[count].message; } break; case "M": if (tempData[count].balloonPos == "Left") { StartCoroutine(DialogPop(dialog_M_Red[0])); red_M_Text[0].text = tempData[count].message; } else if (tempData[count].balloonPos == "Right") { StartCoroutine(DialogPop(dialog_M_Red[1])); red_M_Text[1].text = tempData[count].message; } break; case "L": if (tempData[count].balloonPos == "Left") { StartCoroutine(DialogPop(dialog_L_Red[0])); red_L_Text[0].text = tempData[count].message; } else if (tempData[count].balloonPos == "Right") { StartCoroutine(DialogPop(dialog_L_Red[1])); red_L_Text[1].text = tempData[count].message; } break; } } count = Mathf.Clamp(count + 1, 0, tempData.Count); } }
private void Update() { // Debug.Log(transform.localScale.x); if (password != truePasssword && louis.activeSelf == false && playerPos != null && (Input.GetKeyDown(KeyCode.Space) || DSInput.PushDown(DSButton.Circle))) { InputmonitorScriptStart(); Debug.Log("Update"); } }
void Update() { if (_sceneType == SceneType.StageScene) { if (Input.GetKeyDown(KeyCode.P)) { GameManager.Instance.SetGameState(GameManager.GameState.Pause); } if (DSInput.PushDown(DSButton.Option)) { SoundManager.PlayEffect("Audios/System/popup", false); _dsInput = true; GameManager.Instance.SetGameState(GameManager.GameState.Pause); } if (GameManager.Instance.GetGameState == GameManager.GameState.Pause) { if (Input.GetKeyDown(KeyCode.RightArrow)) { _selects = true; } if (Input.GetKeyDown(KeyCode.LeftArrow)) { _selects = false; } if (DSInput.PushDown(DSButton.Circle)) { _isPush = true; _yesImage[0].gameObject.SetActive(false); _yesImage[1].gameObject.SetActive(true); _fade.Fade(false, () => StageConsole.MyLoadScene(StageConsole.MyScene.Title)); } else if (DSInput.PushDown(DSButton.Cross)) { _noImage[0].gameObject.SetActive(true); _noImage[1].gameObject.SetActive(false); PanelReset(); GameManager.Instance.SetGameState(GameManager.GameState.Main); } if (_selects) { if (Input.GetKeyDown(KeyCode.Z)) { PanelReset(); GameManager.Instance.SetGameState(GameManager.GameState.Main); } } else { if (Input.GetKeyDown(KeyCode.Z)) { PanelReset(); _fade.Fade(false, () => StageConsole.MyLoadScene(StageConsole.MyScene.Title)); } } if (!_isPush) { PauseView(); } } else { PauseNotView(); } } else if (_sceneType == SceneType.ScenarioScene) { if (Input.GetKeyDown(KeyCode.P)) { _isPause = true; } if (DSInput.PushDown(DSButton.Option)) { _dsInput = true; _isPause = true; } if (Input.GetKeyDown(KeyCode.RightArrow)) { _selects = true; } if (Input.GetKeyDown(KeyCode.LeftArrow)) { _selects = false; } if (_isPause) { if (DSInput.PushDown(DSButton.Circle)) { if (useCase.GetScenarioNum == 0) { _isPush = true; _yesImage[0].gameObject.SetActive(false); _yesImage[1].gameObject.SetActive(true); _fade.Fade(false, () => StageConsole.MyLoadScene(StageConsole.MyScene.Tutorial)); } else { _isPush = true; _yesImage[0].gameObject.SetActive(false); _yesImage[1].gameObject.SetActive(true); // エピローグ時の処理 _fade.Fade(false, () => StageConsole.MyLoadScene(StageConsole.MyScene.Title)); } } else if (DSInput.PushDown(DSButton.Cross)) { PanelReset(); _panelImage.gameObject.SetActive(false); _isPause = false; } if (_selects) { if (Input.GetKeyDown(KeyCode.Z)) { PanelReset(); _panelImage.gameObject.SetActive(false); _isPause = false; } } else { if (Input.GetKeyDown(KeyCode.Z)) { PanelReset(); if (useCase.GetScenarioNum == 0) { _fade.Fade(false, () => StageConsole.MyLoadScene(StageConsole.MyScene.Tutorial)); } else { // エピローグ時の処理 _fade.Fade(false, () => StageConsole.MyLoadScene(StageConsole.MyScene.Title)); } } } if (!_isPush) { PauseView(); } } else { PanelReset(); PauseNotView(); } } }