Ejemplo n.º 1
0
    protected void Init()
    {
        if (null != m_ActionFrameData)
        {
            m_fTime  = (float)m_ActionFrameData.Time;
            m_Config = m_ActionFrameData.MoveCameraFrame;
            if (null == m_Config.EndPos)
            {
                m_Config.EndPos = new Common.Auto.ThriftVector3();
            }
            if (null == m_Config.EndRot)
            {
                m_Config.EndRot = new Common.Auto.ThriftVector3();
            }
            m_CamPos   = m_Config.EndPos.GetVector3();
            m_CamEuler = m_Config.EndRot.GetVector3();
        }
        else
        {
            m_ActionFrameData = new ActionFrameData();
            m_Config          = new MoveCameraFrameConfig();

            m_Config.MoveType       = EMoveCameraType.Lock;
            m_Config.IsImmediate    = false;
            m_Config                = new MoveCameraFrameConfig();
            m_Config.Distance       = GlobalScripts.Instance.mGameCamera.Distance;
            m_Config.Height         = GlobalScripts.Instance.mGameCamera.Height;
            m_Config.OffseHeight    = GlobalScripts.Instance.mGameCamera.OffsetHeight;
            m_Config.Rotation       = GlobalScripts.Instance.mGameCamera.Rotation;
            m_Config.PosDamping     = GlobalScripts.Instance.mGameCamera.PositonDamping;
            m_Config.RotDamping     = GlobalScripts.Instance.mGameCamera.RotationDamping;
            m_Config.EndPos         = new Common.Auto.ThriftVector3();
            m_Config.EndRot         = new Common.Auto.ThriftVector3();
            m_Config.IsOverObstacle = GlobalScripts.Instance.mGameCamera.IsOverObstacle;
        }

        m_Instance.minSize = new Vector2(WINDOW_MIN_WIDTH, WINDOW_MIN_HIEGHT);
    }
Ejemplo n.º 2
0
    //private float m_fTickTime;

    public MoveCameraFrame(ActionPlayer action, ActionFrameData data)
        : base(action, data)
    {
        m_Config = m_FrameData.MoveCameraFrame;
    }