示例#1
0
        private void OnStartMove(TSVector position, TSVector forward)
        {
            List <Vector3> lst = GameInTool.TSVectorToLstUnityVector3(m_cMove.lstNextPosition);

            m_cLerpMoveView.StartMove(transform.position, lst);
            RotateToTarget(forward);
        }
示例#2
0
        public void StartMove(TSVector startPosition, List <TSVector> lstPosition)
        {
            TSVector forward = m_sCurForward;

            if (lstPosition.Count > 0)
            {
                forward = lstPosition[0] - startPosition;
            }
            if (!forward.IsZero())
            {
                forward.Normalize();
            }
            SetForward(forward);
            SetPosition(startPosition);
            List <Vector3> lst = GameInTool.TSVectorToLstUnityVector3(lstPosition);

            m_cLerpView.StartMove(transform.position, lst);
        }