Exemplo n.º 1
0
    private void SetCameraQuickFollow(bool bQuick)
    {
        CPlayerFollowCam cam = CCamCtrlMan.Instance.GetGameCamCtrl();

        if (cam != null)
        {
            cam.IsQuickFollow = bQuick;
        }
    }
Exemplo n.º 2
0
    public void Reset()         //回到初始状态
    {
        if (_CurCamCtrl != null)
        {
            _CurCamCtrl.OnDisable();
        }

        _CurCamCtrl        = null;                   // Current camera controller
        _LoginCamCtrl      = new CLoginCamCtrl();    // Login camera controller
        _GameCamCtrl       = new CPlayerFollowCam(); // Game camera controller
        _CGCamCtrl         = null;                   // CG camera controller
        _NpcCamCtrl        = new CNpcDialogueCam();
        _DungeonCamCtrl    = new CDungeonEndCam();
        _UIExteriorCamCtrl = new CUIExteriorCam();
        _NearCamCtrl       = new CPlayerNearCam();
        _BossCamCtrl       = new CBossActionCam();
        _SkillActCamCtrl   = new CSKillActionCam();
    }