예제 #1
0
    // 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;
        }
        */


    }
예제 #2
0
    // 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);
        }
    }
예제 #3
0
    // Update is called once per frame
    void Update()
    {
        //      if (ViveCtrl.Get.Trigger(ViveCtrl.ViveDeviceType.RightHand, ViveCtrl.ViveKey.Trigger))
        //      {
        //          m_Fade.ChangeFlag(false);
        //          m_Audio.Play();
        //      }
        //      if (Input.GetKeyDown(KeyCode.Space))
        //{
        //	m_Fade.ChangeFlag(false);
        //	m_Audio.Play();
        //}

        if (m_Fade.SceneTrans())
        {
            UnityEngine.SceneManagement.SceneManager.LoadScene(m_NextScene);
        }
    }