//private float screenRotTimer = -1.0f;

    //------------------------------
    // Use this for initialization
    //------------------------------
    void Awake()
    {
        //iOS8かどうか判定する.
                #if UNITY_IPHONE && !UNITY_EDITOR
        string version_str   = SystemInfo.operatingSystem.Replace("iPhone OS ", "");
        float  version_float = -1.0f;
        float.TryParse(version_str.Substring(0, 1), out version_float);
        if (version_float == 8.0f)
        {
            GameController.isIOS8 = true;
        }
                #endif

        //端末の回転を制御(Fresvii SDKに入る時に許可した縦持ちを禁止する)(iOS8でない時のみ).
        //if (!GameController.isIOS8) {
        if (Screen.orientation == ScreenOrientation.Portrait || Screen.orientation == ScreenOrientation.PortraitUpsideDown)
        {
            Screen.orientation = ScreenOrientation.LandscapeLeft;
        }
        Screen.autorotateToPortrait           = false;
        Screen.autorotateToPortraitUpsideDown = false;
        //}

        //ゲームオーバー時のサウンドがまだ残っていたら消す.
        GameObject goBGM = GameObject.Find("GameOverBGM");
        if (goBGM != null)
        {
            Destroy(goBGM);
        }

        //サウンドオンオフを設定 / set sound on-off
        GameController.isSoundOn = (PlayerPrefs.GetInt(SOUND_SAVE_KEY, 1) == 1);
        if (GameController.isSoundOn)
        {
            btnSound.sprite = btnSoundSprites[0];
        }
        else
        {
            btnSound.sprite = btnSoundSprites[2];
        }

        Application.targetFrameRate = 60;
        isCanInput = true;

        //コンポーネント取得 / get component
        fresviiComp = gameObject.GetComponent <FresviiForumGUI>();
    }
    //private float screenRotTimer = -1.0f;
    //------------------------------
    // Use this for initialization
    //------------------------------
    void Awake()
    {
        //iOS8かどうか判定する.
        #if UNITY_IPHONE && !UNITY_EDITOR
            string version_str = SystemInfo.operatingSystem.Replace("iPhone OS ", "");
            float version_float = -1.0f;
            float.TryParse(version_str.Substring(0,1), out version_float);
            if (version_float == 8.0f) {
                GameController.isIOS8 = true;
            }
        #endif

        //端末の回転を制御(Fresvii SDKに入る時に許可した縦持ちを禁止する)(iOS8でない時のみ).
        //if (!GameController.isIOS8) {
            if (Screen.orientation == ScreenOrientation.Portrait || Screen.orientation == ScreenOrientation.PortraitUpsideDown) {
                Screen.orientation = ScreenOrientation.LandscapeLeft;
            }
            Screen.autorotateToPortrait = false;
            Screen.autorotateToPortraitUpsideDown = false;
        //}

        //ゲームオーバー時のサウンドがまだ残っていたら消す.
        GameObject goBGM = GameObject.Find("GameOverBGM");
        if (goBGM != null) {
            Destroy(goBGM);
        }

        //サウンドオンオフを設定 / set sound on-off
        GameController.isSoundOn = (PlayerPrefs.GetInt(SOUND_SAVE_KEY, 1) == 1);
        if (GameController.isSoundOn) {
            btnSound.sprite = btnSoundSprites[0];
        } else {
            btnSound.sprite = btnSoundSprites[2];
        }

        Application.targetFrameRate = 60;
        isCanInput = true;

        //コンポーネント取得 / get component
        fresviiComp = gameObject.GetComponent<FresviiForumGUI>();
    }