コード例 #1
0
    public void DriveModelQuadScreenTrans()
    {
        DriveSceneModel driveModel = GlobalVariable.GetDriveSceneModel();

        switch (driveModel)
        {
        case DriveSceneModel.Karting:
            PlayerGameobjectControl.Instance.QuadScreen.transform.localPosition = Drive_KartingQuadScreenPosition;
            PlayerGameobjectControl.Instance.QuadScreen.transform.localScale    = Drive_KartingQuadScreenScale;
            break;

        case DriveSceneModel.King:
            PlayerGameobjectControl.Instance.QuadScreen.transform.localPosition = Drive_KingQuadScreenPosition;
            PlayerGameobjectControl.Instance.QuadScreen.transform.localScale    = Drive_KingQuadScreenScale;
            break;

        case DriveSceneModel.Rattletrap:
            PlayerGameobjectControl.Instance.QuadScreen.transform.localPosition = Drive_RattletrapQuadScreenPosition;
            PlayerGameobjectControl.Instance.QuadScreen.transform.localScale    = Drive_RattletrapQuadScreenScale;
            break;

        default:     //DriveSceneModel.Playboy
            PlayerGameobjectControl.Instance.QuadScreen.transform.localPosition = Drive_PlayboyQuadScreenPosition;
            PlayerGameobjectControl.Instance.QuadScreen.transform.localScale    = Drive_PlayboyQuadScreenScale;
            break;
        }
    }
コード例 #2
0
    private void ChooseCinemaCnvasTrans()
    {
        if (CurJVideoInfo == null || (CurJVideoInfo.stereoType < 0 || CurJVideoInfo.stereoType > 8))
        {
            return;
        }
        if (CurJVideoInfo.stereoType == (int)StereoType.ST2D || CurJVideoInfo.stereoType == (int)StereoType.ST3D_LR || CurJVideoInfo.stereoType == (int)StereoType.ST3D_TB)
        {
            CinemaTipsCanvasControl.GetInstance().transform.parent = PlayerGameobjectControl.Instance.QuadScreen.transform;
            CinemaTipsCanvasControl.GetInstance().transform.localRotation = Quaternion.identity;

            if (GlobalVariable.GetSceneModel() == SceneModel.Default ||
                GlobalVariable.GetSceneModel() == SceneModel.StarringNight ||
                GlobalVariable.GetSceneModel() == SceneModel.IMAXTheater)
            {
                CinemaTipsCanvasControl.GetInstance().transform.localPosition = new Vector3(0, -0.07f, -17);
                CinemaTipsCanvasControl.GetInstance().transform.localScale = new Vector3(0.0003087959f, 0.0005483741f, 0.008f);
            }
            else if (GlobalVariable.GetSceneModel() == SceneModel.Drive)
            {
                DriveSceneModel driveModel = GlobalVariable.GetDriveSceneModel();
                switch (driveModel)
                {
                case DriveSceneModel.Karting:
                    CinemaTipsCanvasControl.GetInstance().transform.localPosition = new Vector3(-0.52f, -0.4f, -42);
                    CinemaTipsCanvasControl.GetInstance().transform.localScale = new Vector3(0.0002222223f, 0.0003960396f, 0.008f);
                    break;

                case DriveSceneModel.King:
                    CinemaTipsCanvasControl.GetInstance().transform.localPosition = new Vector3(0, -0.4f, -42);
                    CinemaTipsCanvasControl.GetInstance().transform.localScale = new Vector3(0.0001369315f, 0.0002769398f, 0.008f);
                    break;

                case DriveSceneModel.Rattletrap:
                    CinemaTipsCanvasControl.GetInstance().transform.localPosition = new Vector3(0.478f, -0.418f, -42);
                    CinemaTipsCanvasControl.GetInstance().transform.localScale = new Vector3(0.0003001876f, 0.0005333334f, 0.008f);
                    break;

                default:     //DriveSceneModel.Playboy
                    CinemaTipsCanvasControl.GetInstance().transform.localPosition = new Vector3(0, -0.4f, -42);
                    CinemaTipsCanvasControl.GetInstance().transform.localScale = new Vector3(0.0002191781f, 0.0003809524f, 0.008f);
                    break;
                }
            }
        }
        else
        {
            CinemaTipsCanvasControl.GetInstance().CinemaCanvasNormalTrans();
            CinemaCustomizeCanvasControl.GetInstance().SetDownloadSpeed("0 B/s");
        }
    }
コード例 #3
0
    private void Awake()
    {
        currentSceneModel = GlobalVariable.GetSceneModel();
        if (currentSceneModel == SceneModel.Default)
        {
            SetDefaultScene();
        }
        else if (currentSceneModel == SceneModel.IMAXTheater)
        {
            SetIMAXTheaterScene();
        }
        else if (currentSceneModel == SceneModel.StarringNight)
        {
            SetStarringNightScene();
        }
        else if (currentSceneModel == SceneModel.Drive)
        {
            DriveSceneModel driveModel = GlobalVariable.GetDriveSceneModel();
            switch (driveModel)
            {
            case DriveSceneModel.Karting:
                SetDrive_KartingScene();
                break;

            case DriveSceneModel.King:
                SetDrive_KingScene();
                break;

            case DriveSceneModel.Rattletrap:
                SetDrive_RattletrapScene();
                break;

            default:     //DriveSceneModel.Playboy
                SetDrive_PlayboyScene();
                break;
            }
        }
    }