コード例 #1
0
    public static DatesForCam GetDates(SectionDataBase sdb)
    {
        SetOfSectionDB sosDb = GetDataBaseCamSet(sdb);

        return(sosDb switch
        {
            SetOfSectionDB.cabeca => new DatesForCam()
            {
                distance = .8f, height = .7f
            },
            SetOfSectionDB.tronco => new DatesForCam()
            {
                distance = 1.5f, height = .32f
            },
            SetOfSectionDB.membros => new DatesForCam()
            {
                distance = 1.5f, height = -0.27f
            },
            SetOfSectionDB.allView => new DatesForCam()
            {
                distance = 1.8f, height = 0f
            },
            _ => new DatesForCam()
            {
                distance = .8f, height = .7f
            }
        });
コード例 #2
0
    private void OnChangeMenuDb(MsgChangeMenuDb obj)
    {
        SetOfSectionDB setDb = CustomizatioDatesForCam.GetDataBaseCamSet(obj.sdb);

        if (setDb != this.setDb)
        {
            this.setDb     = setDb;
            mudandoCam     = true;
            tempoDecorrido = 0;
            startDistance  = CameraApplicator.cam.Cdir.SphericalDistance;
            startHeight    = CameraApplicator.cam.Cdir.VarVerticalHeightPoint;
            dtForCam       = CustomizatioDatesForCam.GetDates(obj.sdb);
        }
    }