// Update is called once per frame void Update() { if (fadeScript.SceneTrans()) { SceneManager.LoadScene(nextScene); } if (!nextFlag) return; // 入力で遷移 if (inputMng.Trigger(ViveCtrl.ViveDeviceType.RightHand, ViveCtrl.ViveKey.Trigger)) { fadeScript.ChangeFlag(false); audioSource.PlayOneShot(audioSource.clip); nextFlag = false; } /* if (Input.GetKeyDown(KeyCode.Space)) { fadeScript.ChangeFlag(false); audioSource.PlayOneShot(audioSource.clip); nextFlag = false; } */ }
// Update is called once per frame void Update() { if (fadeScript.SceneTrans()) { SceneManager.LoadScene(nextScene); } if (flg) { return; } timeNow -= Time.deltaTime; int num = ((int)timeNow % 10); drawNumbers[1].Draw(num); num = (int)timeNow / 10; num = num % 10; drawNumbers[0].Draw(num); if (timeNow < 0) { flg = true; fadeScript.ChangeFlag(false); } }
private void OnTriggerEnter(Collider other) { if (other.gameObject.CompareTag("Arrow")) { m_Fade.ChangeFlag(false); m_Audio.Play(); } }