Пример #1
0
 void Update()
 {
     if (isPushed_)
     {
         if (darkChange_.CallAtUpdate())
         {
             Application.Quit();
         }
     }
 }
Пример #2
0
 void Update()
 {
     if (isPushed_)
     {
         if (darkChange_.CallAtUpdate())
         {
             SceneManager.LoadScene(nextSceneName_);
         }
     }
 }
Пример #3
0
    void DeathEffect()
    {
        // 気休めの死亡アニメーション
        Quaternion x90Rotation = Quaternion.AngleAxis(90f, Vector3.right);

        transform.localRotation = Quaternion.Lerp(transform.localRotation, x90Rotation, 5f * Time.deltaTime);

        // 暗転処理
        if (darkChange_.CallAtUpdate())
        {
            Cursor.lockState = CursorLockMode.None;
            Cursor.visible   = true;
            gameoverObject_.SetActive(true);
        }
    }