void OnViewChange(Camera_E _cameraevent)
    {
        QMsg msg = new CameraControllMsg()
        {
            EventID     = (int)Camera_E.Begin,
            cameraevent = _cameraevent
        };

        CameraManager.Instance.SendMsg(msg);
    }
Пример #2
0
    //六视图回调
    public void CallBack(QMsg obj)
    {
        CameraControllMsg cmcc     = obj as CameraControllMsg;
        Camera_E          ce       = cmcc.cameraevent;
        Vector3           endvilue = back;

        switch (ce)
        {
        case Camera_E.Forword:
            endvilue = forword;
            break;

        case Camera_E.Left:
            endvilue = left;
            break;

        case Camera_E.Down:
            endvilue = down;
            break;

        case Camera_E.Right:
            endvilue = right;
            break;

        case Camera_E.Back:
            endvilue = back;
            break;

        case Camera_E.Up:
            endvilue = up;
            break;

        case Camera_E.ResetView:
            endvilue = back;
            Replay();
            break;

        case Camera_E.ChangeTargetPos:
            break;

        case Camera_E.Target:
            Init(cmcc.camerarotatetarget);
            endvilue = back;
            break;

        default:
            break;
        }

        MoveTo(center, endvilue, 1);
    }